Diff for /libaitrpc/src/blob.c between versions 1.13.2.2 and 1.13.2.3

version 1.13.2.2, 2013/07/15 13:53:10 version 1.13.2.3, 2013/07/15 14:27:28
Line 272  rpc_srv_recvBLOB(rpc_cli_t * __restrict cli, rpc_blob_ Line 272  rpc_srv_recvBLOB(rpc_cli_t * __restrict cli, rpc_blob_
  * @cli = Client instance   * @cli = Client instance
  * @var = BLOB variable   * @var = BLOB variable
  * @data = BLOB data   * @data = BLOB data
 * @tout = BLOB live on server timeout in seconds, if =NULL default timeout * @tout = BLOB live on server timeout in seconds, if =0 default timeout
  * return: -1 error, 0 ok, 1 remote error   * return: -1 error, 0 ok, 1 remote error
  */   */
 int  int
rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, ait_val_t * __restrict var, void * __restrict data, rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, ait_val_t * __restrict var, 
                int * __restrict tout)                void * __restrict data, int tout)
 {  {
         int ret, len;          int ret, len;
         uint8_t *pos;          uint8_t *pos;
Line 293  rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, ait_val_t Line 293  rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, ait_val_t
         rpc_addPktSession(&hdr.hdr_session, cli->cli_parent);          rpc_addPktSession(&hdr.hdr_session, cli->cli_parent);
         hdr.hdr_cmd = set;          hdr.hdr_cmd = set;
         hdr.hdr_var = 0;          hdr.hdr_var = 0;
        hdr.hdr_ret = tout ? *tout : 0;        hdr.hdr_ret = tout;
         hdr.hdr_len = htonl(AIT_LEN(var));          hdr.hdr_len = htonl(AIT_LEN(var));
   
         /* send SET request */          /* send SET request */

Removed from v.1.13.2.2  
changed lines
  Added in v.1.13.2.3


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