From 605c1fb8fef83b9786e2386067f8e43d010a5efe Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 19 Dec 2002 01:55:32 +0000 Subject: [PATCH] suppress gnu warning --- src/rsrv/camsgtask.c | 3 ++- src/rsrv/caservertask.c | 6 +++--- src/rsrv/cast_server.c | 2 +- src/rsrv/online_notify.c | 2 +- src/rsrv/server.h | 6 +++--- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/rsrv/camsgtask.c b/src/rsrv/camsgtask.c index 88b82a9aa..b793d746c 100644 --- a/src/rsrv/camsgtask.c +++ b/src/rsrv/camsgtask.c @@ -36,8 +36,9 @@ * * CA server TCP client task (one spawned for each client) */ -void camsgtask ( struct client *client ) +void camsgtask ( void *pParm ) { + struct client *client = (struct client *) pParm; int nchars; int status; diff --git a/src/rsrv/caservertask.c b/src/rsrv/caservertask.c index 4c93c5f9d..4627525fe 100644 --- a/src/rsrv/caservertask.c +++ b/src/rsrv/caservertask.c @@ -56,7 +56,7 @@ if(threadNameToId(NAME)!=0)threadDestroy(threadNameToId(NAME)); * handle each of them * */ -LOCAL void req_server (void) +LOCAL void req_server (void *pParm) { unsigned priorityOfSelf = epicsThreadGetPrioritySelf (); unsigned priorityOfUDP; @@ -179,7 +179,7 @@ LOCAL void req_server (void) tid = epicsThreadCreate ( "CAS-UDP", priorityOfUDP, epicsThreadGetStackSize (epicsThreadStackMedium), - (EPICSTHREADFUNC) cast_server, 0 ); + cast_server, 0 ); if ( tid == 0 ) { epicsPrintf ( "CAS: unable to start connection request thread\n" ); } @@ -210,7 +210,7 @@ LOCAL void req_server (void) id = epicsThreadCreate ( "CAS-client", epicsThreadPriorityCAServerLow, epicsThreadGetStackSize ( epicsThreadStackBig ), - ( EPICSTHREADFUNC ) camsgtask, pClient ); + camsgtask, pClient ); if ( id == 0 ) { destroy_tcp_client ( pClient ); errlogPrintf ( "CAS: task creation for new client failed\n" ); diff --git a/src/rsrv/cast_server.c b/src/rsrv/cast_server.c index 1ea4dad8d..5ebb27902 100644 --- a/src/rsrv/cast_server.c +++ b/src/rsrv/cast_server.c @@ -107,7 +107,7 @@ LOCAL void clean_addrq() * service UDP messages * */ -int cast_server(void) +void cast_server(void *pParm) { unsigned priorityOfSelf = epicsThreadGetPrioritySelf (); unsigned priorityOfBeacon; diff --git a/src/rsrv/online_notify.c b/src/rsrv/online_notify.c index a691a749e..9b43705c0 100644 --- a/src/rsrv/online_notify.c +++ b/src/rsrv/online_notify.c @@ -56,7 +56,7 @@ static void forcePort (ELLLIST *pList, unsigned short port) /* * RSRV_ONLINE_NOTIFY_TASK */ -void rsrv_online_notify_task() +void rsrv_online_notify_task(void *pParm) { osiSockAddrNode *pNode; double delay; diff --git a/src/rsrv/server.h b/src/rsrv/server.h index 45234e221..02c5c4060 100644 --- a/src/rsrv/server.h +++ b/src/rsrv/server.h @@ -172,11 +172,11 @@ GLBLTYPE void *rsrvPutNotifyFreeList; #define LOCK_CLIENTQ epicsMutexMustLock (clientQlock); #define UNLOCK_CLIENTQ epicsMutexUnlock (clientQlock); -void camsgtask (struct client *client); +void camsgtask (void *client); void cas_send_bs_msg ( struct client *pclient, int lock_needed ); void cas_send_dg_msg ( struct client *pclient ); -void rsrv_online_notify_task (void); -int cast_server (void); +void rsrv_online_notify_task (void *); +void cast_server (void); struct client *create_client ( SOCKET sock, int proto ); void destroy_client ( struct client * ); struct client *create_tcp_client ( SOCKET sock );