From: muench Date: Wed, 7 Apr 2004 10:44:07 +0000 (+0000) Subject: rpc: basics solved X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=091b49ee484dc255d30cec7cce2891851c51ea33;p=daqdata.git rpc: basics solved --- diff --git a/allParam/rpc/rpcpas.c b/allParam/rpc/rpcpas.c index 2d12bda..631c3f1 100644 --- a/allParam/rpc/rpcpas.c +++ b/allParam/rpc/rpcpas.c @@ -5,12 +5,14 @@ #include "rpcParam.h" -unsigned long *con_1_svc(char **setup, struct svc_req *svcReq) { +unsigned long *con_1_svc(char **arg, struct svc_req *svcReq) { static unsigned long res; Param *p; + char *setup; p = malloc(sizeof(Param)); - if (conSetupParam(p, strcmp(*setup, "") == 0 ? NULL : *setup) == -1) { + setup = strcmp(*arg, "") == 0 ? NULL : *arg; + if (conSetupParam(p, setup) == -1) { free(p); p = NULL; }