pkgsrc/net/flow-tools/patches/patch-at
seb a16f0a02ac Make this package compile with NetBSD current's gcc (4.1.2).
Thanks to matt@ for the course on pointer arithmetic.
2006-07-18 11:06:48 +00:00

102 lines
1.9 KiB
Text

$NetBSD: patch-at,v 1.1 2006/07/18 11:06:48 seb Exp $
--- lib/fttlv.c.orig 2003-02-13 02:38:43.000000000 +0000
+++ lib/fttlv.c
@@ -68,10 +68,10 @@ int fttlv_enc_uint32(void *buf, int buf_
}
bcopy(&t, buf, 2);
- (char*)buf+= 2;
+ buf = (char*)buf + 2;
bcopy(&len, buf, 2);
- (char*)buf+= 2;
+ buf = (char*)buf + 2;
bcopy(&v, buf, 4);
@@ -107,10 +107,10 @@ int fttlv_enc_uint16(void *buf, int buf_
}
bcopy(&t, buf, 2);
- (char*)buf+= 2;
+ buf = (char*)buf + 2;
bcopy(&len, buf, 2);
- (char*)buf+= 2;
+ buf = (char*)buf + 2;
bcopy(&v, buf, 2);
@@ -145,10 +145,10 @@ int fttlv_enc_uint8(void *buf, int buf_s
}
bcopy(&t, buf, 2);
- (char*)buf+= 2;
+ buf = (char*)buf + 2;
bcopy(&len, buf, 2);
- (char*)buf+= 2;
+ buf = (char*)buf + 2;
bcopy(&v, buf, 1);
@@ -183,10 +183,10 @@ int fttlv_enc_str(void *buf, int buf_siz
}
bcopy(&t, buf, 2);
- (char*)buf+= 2;
+ buf = (char*)buf + 2;
bcopy(&len, buf, 2);
- (char*)buf+= 2;
+ buf = (char*)buf + 2;
bcopy(v, buf, len);
@@ -230,16 +230,16 @@ int fttlv_enc_ifname(void *buf, int buf_
return -1;
bcopy(&t, buf, 2);
- (char*)buf+= 2;
+ buf = (char*)buf + 2;
bcopy(&len, buf, 2);
- (char*)buf+= 2;
+ buf = (char*)buf + 2;
bcopy(&ip, buf, 4);
- (char*)buf += 4;
+ buf = (char*)buf + 4;
bcopy(&ifIndex, buf, 2);
- (char*)buf += 2;
+ buf = (char*)buf + 2;
bcopy(name, buf, n);
@@ -287,19 +287,19 @@ int fttlv_enc_ifalias(void *buf, int buf
}
bcopy(&t, buf, 2);
- (char*)buf+= 2;
+ buf = (char*)buf + 2;
bcopy(&len, buf, 2);
- (char*)buf+= 2;
+ buf = (char*)buf + 2;
bcopy(&ip, buf, 4);
- (char*)buf += 4;
+ buf = (char*)buf + 4;
bcopy(&entries, buf, 2);
- (char*)buf += 2;
+ buf = (char*)buf + 2;
bcopy(ifIndex_list, buf, esize);
- (char*)buf += esize;
+ buf = (char*)buf + esize;
bcopy(name, buf, n);