X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Frx%2Frx_user.c;h=7d9f603f56b7d3cfc16cf7e2bf2123eba9495dbb;hp=d65600622a690a1fece6ac470de72ee3fe6d452d;hb=e63a93f371729d565b37aaacb29734faafc938a2;hpb=7705453b05ddb140a0e26f9e43a7e640c4cb62ab diff --git a/src/rx/rx_user.c b/src/rx/rx_user.c index d656006..7d9f603 100644 --- a/src/rx/rx_user.c +++ b/src/rx/rx_user.c @@ -10,6 +10,7 @@ /* rx_user.c contains routines specific to the user space UNIX implementation of rx */ # include +# include # include # include # include @@ -31,6 +32,12 @@ #endif #include #include +#ifdef HAVE_STRINGS_H +#include +#endif +#ifdef HAVE_STRING_H +#include +#endif #ifndef IPPORT_USERRESERVED /* If in.h doesn't define this, define it anyway. Unfortunately, defining @@ -45,8 +52,8 @@ # include "rx.h" # include "rx_globals.h" - extern void rxi_Delay(); +extern void rxi_MorePackets(); #ifdef AFS_PTHREAD_ENV #include @@ -86,12 +93,12 @@ pthread_mutex_t rx_if_mutex; */ osi_socket rxi_GetUDPSocket(u_short port) { - int binds, code; + int binds, code=0; osi_socket socketFd = OSI_NULLSOCKET; struct sockaddr_in taddr; char *name = "rxi_GetUDPSocket: "; extern int rxi_Listen(osi_socket sock); - int greedy; + int greedy=0; #if !defined(AFS_NT40_ENV) && !defined(AFS_DJGPP_ENV) if (ntohs(port) >= IPPORT_RESERVED && ntohs(port) < IPPORT_USERRESERVED) { @@ -348,7 +355,7 @@ void rx_GetIFInfo() #ifndef AFS_DJGPP_ENV struct ifconf ifc; struct ifreq ifs[ADDRSPERSITE]; - struct ifreq ifreq, *ifr; + struct ifreq *ifr; #ifdef AFS_AIX41_ENV char buf[BUFSIZ], *cp, *cplim; #endif