tpoor type-punned pointer - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit cd14fd5f81596287493e46fe0045c04030c3ed4d
(DIR) parent 6df24754e468192b309ea5b5fd6d7ba8c905756d
(HTM) Author: rsc <devnull@localhost>
Date: Fri, 5 May 2006 15:19:10 +0000
poor type-punned pointer
Diffstat:
M src/libsunrpc/nfs3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/libsunrpc/nfs3.c b/src/libsunrpc/nfs3.c
t@@ -2941,7 +2941,7 @@ nfs3entrysize(Nfs3Entry *x)
static int
sunstringvpack(uchar *a, uchar *ea, uchar **pa, char **s, u32int n)
{
- return sunvaropaquepack(a, ea, pa, (uchar**)&s, &n, -1);
+ return sunvaropaquepack(a, ea, pa, (uchar**)(void*)&s, &n, -1);
}
int
nfs3entrypack(uchar *a, uchar *ea, uchar **pa, Nfs3Entry *x)