[BACK]Return to sock.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / sndiod

Diff for /src/usr.bin/sndiod/sock.c between version 1.19 and 1.20

version 1.19, 2016/10/27 04:37:47 version 1.20, 2017/07/20 10:26:27
Line 540 
Line 540 
                 return 1;                  return 1;
         }          }
         while (f->wtodo > 0) {          while (f->wtodo > 0) {
                   /*
                    * f->slot and f->midi are set by sock_hello(), so
                    * count is always properly initialized
                    */
                 if (f->slot)                  if (f->slot)
                         data = abuf_rgetblk(&f->slot->sub.buf, &count);                          data = abuf_rgetblk(&f->slot->sub.buf, &count);
                 else if (f->midi)                  else if (f->midi)
Line 1508 
Line 1512 
         case SOCK_WMSG:          case SOCK_WMSG:
                 if (!sock_wmsg(f))                  if (!sock_wmsg(f))
                         return 0;                          return 0;
                   /*
                    * f->wmsg is either build by sock_buildmsg() or
                    * copied from f->rmsg (in the SOCK_RRET state), so
                    * it's safe.
                    */
                 if (ntohl(f->wmsg.cmd) != AMSG_DATA) {                  if (ntohl(f->wmsg.cmd) != AMSG_DATA) {
                         f->wstate = SOCK_WIDLE;                          f->wstate = SOCK_WIDLE;
                         f->wtodo = 0xdeadbeef;                          f->wtodo = 0xdeadbeef;

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20