Mark Leisher wrote:
Sun Workshop compiler 5.0:

"../../netinet/ip_pptp_pxy.c", line 275: cannot do pointer arithmetic on operand of unknown size

The fin_dp field of the fr_info_t structure is a void * leading to the error.

I forgot to add the patch:

-- --- ip_pptp_pxy.c.orig  2005-03-15 11:58:28.000000000 -0700
+++ ip_pptp_pxy.c       2005-03-15 13:18:47.000000000 -0700
@@ -272,7 +272,7 @@
                return -1;
        }

-       msg = fin->fin_dp + (TCP_OFF(tcp) << 2);
+       msg = (char *)fin->fin_dp + (TCP_OFF(tcp) << 2);

        while (dlen > 0) {
                off += pptps->pptps_bytes;

---------------------------------------------------------------------------
Mark Leisher
Computing Research Lab            All political parties die at last of
New Mexico State University       swallowing their own lies.
Box 30001, MSC 3CRL                  -- John Arbuthnot (1667-1735)
Las Cruces, NM  88003

Reply via email to