1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
$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);
|