#include <afsconfig.h>
#include <afs/param.h>
-RCSID
- ("$Header$");
#include <sys/types.h>
#include <errno.h>
# include <sys/time.h>
#endif
#include <sys/stat.h>
-#include "rx_internal.h"
#include <rx/rx.h>
#include <rx/rx_globals.h>
#include <assert.h>
static void *
server_entry(void *argp)
{
- void (*server_proc) () = (void (*)())argp;
- server_proc();
+ void (*server_proc) (void *) = (void (*)(void *))argp;
+ server_proc(NULL);
dpf(("rx_pthread.c: server_entry: Server proc returned unexpectedly\n"));
exit(1);
- return (void *)0;
+ return NULL;
}
/*
#endif
rx_pthread_event_rescheduled = 0;
}
+ return NULL;
}
{
unsigned int host;
u_short port;
- register struct rx_packet *p = (struct rx_packet *)0;
+ struct rx_packet *p = (struct rx_packet *)0;
MUTEX_ENTER(&listener_mutex);
while (!listeners_started) {
/* assert(sock != OSI_NULLSOCKET); */
}
/* not reached */
+ return NULL;
}
/* This is the server process request loop. The server process loop
/* assert(newcall != NULL); */
}
/* not reached */
+ return NULL;
}
/*
return 0;
}
-struct rx_ts_info_t * rx_ts_info_init() {
- register struct rx_ts_info_t * rx_ts_info;
+struct rx_ts_info_t * rx_ts_info_init(void) {
+ struct rx_ts_info_t * rx_ts_info;
rx_ts_info = (rx_ts_info_t *) malloc(sizeof(rx_ts_info_t));
assert(rx_ts_info != NULL && pthread_setspecific(rx_ts_info_key, rx_ts_info) == 0);
memset(rx_ts_info, 0, sizeof(rx_ts_info_t));