Diff for /libaitrpc/src/cli.c between versions 1.17.2.1 and 1.17.2.2

version 1.17.2.1, 2013/08/23 13:13:07 version 1.17.2.2, 2013/08/23 13:34:52
Line 300  rpc_pkt_Receive(int sock, int type, sockaddr_t * __res Line 300  rpc_pkt_Receive(int sock, int type, sockaddr_t * __res
   
         /* reply from RPC server */          /* reply from RPC server */
         do {          do {
                                 printf("START estlen=%d blen=%d\n", estlen, blen);  
                 if (type == SOCK_STREAM)                  if (type == SOCK_STREAM)
                         ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, NULL, buf, blen);                          ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, NULL, buf, blen);
                 else                  else
                         ret = rpc_Read(sock, type, 0, sa, buf, AIT_LEN(pkt));                          ret = rpc_Read(sock, type, 0, sa, buf, AIT_LEN(pkt));
                 printf("RET=%d\n", ret);  
                 if (ret < 1) {                  if (ret < 1) {
                         LOGERR;                          LOGERR;
                         return -1;                          return -1;
Line 326  rpc_pkt_Receive(int sock, int type, sockaddr_t * __res Line 324  rpc_pkt_Receive(int sock, int type, sockaddr_t * __res
                                 AIT_RE_BUF(pkt, estlen);                                  AIT_RE_BUF(pkt, estlen);
                         buf = AIT_GET_BUF(pkt);                          buf = AIT_GET_BUF(pkt);
                         blen = estlen;                          blen = estlen;
                         printf("estlen=%d blen=%d\n", estlen, blen);  
                         continue;                          continue;
                 }                  }
   

Removed from v.1.17.2.1  
changed lines
  Added in v.1.17.2.2


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