From 091b49ee484dc255d30cec7cce2891851c51ea33 Mon Sep 17 00:00:00 2001 From: muench Date: Wed, 7 Apr 2004 10:44:07 +0000 Subject: [PATCH] rpc: basics solved --- allParam/rpc/rpcpas.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.43.0