From 9d16b9c3f0cb5e2b74f82c9f7fca24835410a31b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 27 May 2005 00:37:13 +0000 Subject: 2005-05-26 Joel Sherrill * libnetworking/lib/ftpfs.c, librpc/include/rpc/svc.h, librpc/src/rpc/get_myaddress.c, librpc/src/rpc/pmap_getmaps.c, librpc/src/rpc/pmap_getport.c: Remove warnings. --- cpukit/ChangeLog | 6 ++++++ cpukit/libnetworking/lib/ftpfs.c | 6 +++--- cpukit/librpc/include/rpc/svc.h | 2 +- cpukit/librpc/src/rpc/get_myaddress.c | 1 + cpukit/librpc/src/rpc/pmap_getmaps.c | 1 + cpukit/librpc/src/rpc/pmap_getport.c | 1 + 6 files changed, 13 insertions(+), 4 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 8c7845722e..59fca80267 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2005-05-26 Joel Sherrill + + * libnetworking/lib/ftpfs.c, librpc/include/rpc/svc.h, + librpc/src/rpc/get_myaddress.c, librpc/src/rpc/pmap_getmaps.c, + librpc/src/rpc/pmap_getport.c: Remove warnings. + 2005-05-25 Ralf Corsepius * librpc/include/rpc/clnt.h, librpc/include/rpc/svc.h, diff --git a/cpukit/libnetworking/lib/ftpfs.c b/cpukit/libnetworking/lib/ftpfs.c index 49f64d5728..ea71eae395 100644 --- a/cpukit/libnetworking/lib/ftpfs.c +++ b/cpukit/libnetworking/lib/ftpfs.c @@ -538,7 +538,7 @@ int rtems_ftp_open( rtems_boolean is_write = FALSE; rtems_boolean sema_obtained = FALSE; struct ftpStream *fsp = NULL; - int msg_tmp; + int msg_tmp = 0; socklen_t sockaddr_size; /* * check for R/O or W/O flags @@ -970,7 +970,7 @@ ssize_t rtems_ftp_read( struct ftpStream *fsp; size_t want_cnt; ssize_t rd_cnt; - int msg_tmp; + int msg_tmp = 0; fsp = iop->data1; want_cnt = count; @@ -1024,7 +1024,7 @@ ssize_t rtems_ftp_write( struct ftpStream *fsp; size_t want_cnt; ssize_t wr_cnt; - int msg_tmp; + int msg_tmp = 0; fsp = iop->data1; want_cnt = count; diff --git a/cpukit/librpc/include/rpc/svc.h b/cpukit/librpc/include/rpc/svc.h index 03928ff007..4ba04a5894 100644 --- a/cpukit/librpc/include/rpc/svc.h +++ b/cpukit/librpc/include/rpc/svc.h @@ -93,7 +93,7 @@ typedef struct __rpc_svcxprt { /* destroy this struct */ void (*xp_destroy)(struct __rpc_svcxprt *); } *xp_ops; - int xp_addrlen; /* length of remote address */ + socklen_t xp_addrlen; /* length of remote address */ struct sockaddr_in xp_raddr; /* remote addr. (backward ABI compat) */ struct opaque_auth xp_verf; /* raw response verifier */ void *xp_p1; /* private: for use by svc ops */ diff --git a/cpukit/librpc/src/rpc/get_myaddress.c b/cpukit/librpc/src/rpc/get_myaddress.c index 8e951f559e..869bd51be4 100644 --- a/cpukit/librpc/src/rpc/get_myaddress.c +++ b/cpukit/librpc/src/rpc/get_myaddress.c @@ -46,6 +46,7 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/get_myaddress.c,v 1.17 2000/01/ #include #include #include +#include #include #include #include diff --git a/cpukit/librpc/src/rpc/pmap_getmaps.c b/cpukit/librpc/src/rpc/pmap_getmaps.c index 3a5f6aa16e..7585d683cd 100644 --- a/cpukit/librpc/src/rpc/pmap_getmaps.c +++ b/cpukit/librpc/src/rpc/pmap_getmaps.c @@ -49,6 +49,7 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/pmap_getmaps.c,v 1.11 2000/01/2 #include #include #include +#include #include #include #define NAMELEN 255 diff --git a/cpukit/librpc/src/rpc/pmap_getport.c b/cpukit/librpc/src/rpc/pmap_getport.c index 4029f1e5b9..31fa7689b9 100644 --- a/cpukit/librpc/src/rpc/pmap_getport.c +++ b/cpukit/librpc/src/rpc/pmap_getport.c @@ -44,6 +44,7 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/pmap_getport.c,v 1.10 2000/01/2 #include #include #include +#include #include #include -- cgit v1.2.3