[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.29 and 1.30

version 1.29, 2018/06/26 07:39:59 version 1.30, 2019/06/29 21:23:18
Line 320 
Line 320 
         int n;          int n;
   
         n = write(f->fd, data, count);          n = write(f->fd, data, count);
         if (n < 0) {          if (n == -1) {
 #ifdef DEBUG  #ifdef DEBUG
                 if (errno == EFAULT) {                  if (errno == EFAULT) {
                         log_puts("sock_fdwrite: fault\n");                          log_puts("sock_fdwrite: fault\n");
Line 361 
Line 361 
         int n;          int n;
   
         n = read(f->fd, data, count);          n = read(f->fd, data, count);
         if (n < 0) {          if (n == -1) {
 #ifdef DEBUG  #ifdef DEBUG
                 if (errno == EFAULT) {                  if (errno == EFAULT) {
                         log_puts("sock_fdread: fault\n");                          log_puts("sock_fdread: fault\n");

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30