Diff for /libaitrpc/src/lists.c between versions 1.1.2.5 and 1.1.2.7

version 1.1.2.5, 2010/07/07 12:29:50 version 1.1.2.7, 2010/07/08 07:16:36
Line 67  rpc_srv_declValsCall(rpc_func_t * __restrict call, int Line 67  rpc_srv_declValsCall(rpc_func_t * __restrict call, int
                         call->func_vals = ptr;                          call->func_vals = ptr;
         }          }
   
        return call->func_args;        return return_vals;
 }  }
   
 /*  /*
Line 137  rpc_srv_getValsCall(rpc_func_t * __restrict call, rpc_ Line 137  rpc_srv_getValsCall(rpc_func_t * __restrict call, rpc_
  * @srv = RPC Server instance   * @srv = RPC Server instance
  * @csModule = Module name, if NULL self binary   * @csModule = Module name, if NULL self binary
  * @csFunc = Function name   * @csFunc = Function name
 * @args = Number of function arguments * @args = Number of return function arguments, use for restriction case!
  * return: -1 error or 0 register ok   * return: -1 error or 0 register ok
  */   */
 int  int
Line 170  rpc_srv_registerCall(rpc_srv_t * __restrict srv, const Line 170  rpc_srv_registerCall(rpc_srv_t * __restrict srv, const
   
         func->func_parent = srv;          func->func_parent = srv;
   
        if (rpc_srv_declValsCall(func, args) == -1) {        if (args > 0 && rpc_srv_declValsCall(func, args) == -1) {
                 free(func);                  free(func);
                 return -1;                  return -1;
         }          }
Line 311  rpc_srv_getBLOB(rpc_srv_t * __restrict srv, uint32_t v Line 311  rpc_srv_getBLOB(rpc_srv_t * __restrict srv, uint32_t v
                 return NULL;                  return NULL;
         }          }
   
        for (b = srv->srv_blob.blobs; b; b = b->blob_next)        for (b = srv->srv_blob.blobs; b; b = b->blob_next) {
                 if (b->blob_var == var)                  if (b->blob_var == var)
                         break;                          break;
           }
   
         return b;          return b;
 }  }

Removed from v.1.1.2.5  
changed lines
  Added in v.1.1.2.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>