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

Diff for /src/usr.bin/sndiod/file.c between version 1.9 and 1.10

version 1.9, 2015/07/17 09:43:28 version 1.10, 2015/07/17 09:51:18
Line 233 
Line 233 
                 return NULL;                  return NULL;
         }          }
         f = xmalloc(sizeof(struct file));          f = xmalloc(sizeof(struct file));
         f->nfds = nfds;          f->max_nfds = nfds;
         f->ops = ops;          f->ops = ops;
         f->arg = arg;          f->arg = arg;
         f->name = name;          f->name = name;
Line 246 
Line 246 
                 log_puts(": created\n");                  log_puts(": created\n");
         }          }
 #endif  #endif
         file_nfds += f->nfds;          file_nfds += f->max_nfds;
         return f;          return f;
 }  }
   
Line 259 
Line 259 
                 panic();                  panic();
         }          }
 #endif  #endif
         file_nfds -= f->nfds;          file_nfds -= f->max_nfds;
         f->state = FILE_ZOMB;          f->state = FILE_ZOMB;
 #ifdef DEBUG  #ifdef DEBUG
         if (log_level >= 3) {          if (log_level >= 3) {

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10