Index: src/core/rpc/tsp_server.c =================================================================== RCS file: /cvsroot/tsp/tsp/src/core/rpc/tsp_server.c,v retrieving revision 1.18 diff -r1.18 tsp_server.c 39a40 > /* FIXME a quoi sert ce define ? */ 42a44,46 > #include > #include > #include 45a50 > #include "../ctrl/tsp_provider.h" 50d54 < 51a56,60 > #include "tsp_rpc_confprogid.h" > > void > tsp_rpc_1(struct svc_req *rqstp, register SVCXPRT *transp) ; > 54a64 > #define TSP_URL_MAXLENGTH 256 58c68 < char url[256]; --- > char url[TSP_URL_MAXLENGTH]; 64,71c74,76 < < static TSP_provider_info_t server_info; < < STRACE_IO(("-->IN")); < < < server_info.info = GLU_get_server_name(); < --- > static TSP_provider_info_t server_info; > STRACE_IO(("-->IN")); > server_info.info = GLU_get_server_name(); 73,75d77 < < < 84,93c86,88 < < < STRACE_IO(("-->IN")); < < < TSP_provider_request_open(&req_open, &ans_open); < < STRACE_IO(("-->OUT")); < < --- > STRACE_IO(("-->IN")); > TSP_provider_request_open(&req_open, &ans_open); > STRACE_IO(("-->OUT")); 117,119c112 < STRACE_IO(("-->IN")); < < --- > STRACE_IO(("-->IN")); 121,124c114 < < STRACE_IO(("-->OUT")); < < --- > STRACE_IO(("-->OUT")); 135d124 < 137d125 < 150d137 < 160d146 < 173d158 < 180d164 < 183,186d166 < < < < 189d168 < 200d178 < 202d179 < 221,224d197 < < void < tsp_rpc_1(struct svc_req *rqstp, register SVCXPRT *transp) ; < 260,261c233,234 < /* svc_create does not exist for linux, we must use the deprecated function */ < pmap_unset (rpc_progid, TSP_RPC_VERSION_INITIAL); --- > /* svc_create does not exist for linux, we must use the deprecated function */ > //pmap_unset (rpc_progid, TSP_RPC_VERSION_INITIAL); 285a259,261 > //STRACE_DEBUG(("calling svc_exit...")); > //svc_destroy(config->xprt); > 288a265 > svc_unregister(TSP_get_progid(config->server_number),TSP_RPC_VERSION_INITIAL); 291,293d267 < < STRACE_DEBUG(("calling svc_exit...")); < svc_destroy(config->xprt); 314c288 < TSP_rpc_request_config_t *config = (TSP_rpc_request_config_t *)this->config_param; --- > TSP_rpc_request_config_t *config = (TSP_rpc_request_config_t *)(this->config_param); 318,319c292,294 < strcpy(config->url, ""); < --- > /* do not buffer overflow */ > memset(&config->url[0],'\0',TSP_URL_MAXLENGTH); > 332c307,308 < sprintf(config->url, TSP_URL_FORMAT, TSP_RPC_PROTOCOL, hostname, servername, config->server_number); --- > snprintf(config->url, TSP_URL_MAXLENGTH, > TSP_URL_FORMAT, TSP_RPC_PROTOCOL, hostname, servername, config->server_number); 346c322 < TSP_rpc_request_config_t *config = (TSP_rpc_request_config_t *)this->config_param; --- > TSP_rpc_request_config_t *config = (TSP_rpc_request_config_t *)(this->config_param); 350c326 < pthread_detach(pthread_self()); /* FIXME shoudl we do this */ --- > //pthread_detach(pthread_self()); /* FIXME shoudl we do this */ 366c342 < TSP_rpc_request_config_t *config = (TSP_rpc_request_config_t*)this->config_param; --- > TSP_rpc_request_config_t *config = (TSP_rpc_request_config_t*)(this->config_param); 375c351 < TSP_rpc_request_config_t *config = (TSP_rpc_request_config_t*)this->config_param; --- > TSP_rpc_request_config_t *config = (TSP_rpc_request_config_t*)(this->config_param); 385c361 < void main(void) --- > int main(void) 392a369 > return 0;