--- libaitrpc/src/lists.c 2011/11/03 14:57:56 1.5.2.2 +++ libaitrpc/src/lists.c 2011/11/03 15:28:36 1.5.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: lists.c,v 1.5.2.2 2011/11/03 14:57:56 misho Exp $ +* $Id: lists.c,v 1.5.2.3 2011/11/03 15:28:36 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -52,7 +52,7 @@ SUCH DAMAGE. * @varnum = Number of variables, if ==0 return already allocated variables number * return: -1 error, !=-1 return varnum value */ -inline int +static inline int rpc_srv_allocVars(rpc_func_t * __restrict call, int varnum) { if (!call || varnum < 0) { @@ -67,22 +67,6 @@ rpc_srv_allocVars(rpc_func_t * __restrict call, int va } return io_arraySize(call->func_vars); -} - -/* - * rpc_srv_freeVars() Clean values from variables of array - * @call = RPC function call - * return: -1 error, !=-1 Returned number of cleaned variables - */ -inline int -rpc_srv_freeVars(rpc_func_t * __restrict call) -{ - if (!call) { - rpc_SetErr(EINVAL, "Error:: Invalid parameter can`t delete variables ...\n"); - return -1; - } - - return io_clrVars(call->func_vars); } /*