summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/ChangeLog6
-rw-r--r--cpukit/libnetworking/lib/ftpfs.c6
-rw-r--r--cpukit/librpc/include/rpc/svc.h2
-rw-r--r--cpukit/librpc/src/rpc/get_myaddress.c1
-rw-r--r--cpukit/librpc/src/rpc/pmap_getmaps.c1
-rw-r--r--cpukit/librpc/src/rpc/pmap_getport.c1
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 <joel@OARcorp.com>
+
+ * 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 <ralf.corsepius@rtems.org>
* 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 <sys/socket.h>
#include <stdio.h>
#include <unistd.h>
+#include <sys/mbuf.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
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 <stdio.h>
#include <unistd.h>
#include <errno.h>
+#include <sys/mbuf.h>
#include <net/if.h>
#include <sys/ioctl.h>
#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 <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
#include <sys/socket.h>
+#include <sys/mbuf.h>
#include <net/if.h>
#include <unistd.h>