=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/file.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/sndiod/file.c 2015/07/17 09:43:28 1.9 --- src/usr.bin/sndiod/file.c 2015/07/17 09:51:18 1.10 *************** *** 1,4 **** ! /* $OpenBSD: file.c,v 1.9 2015/07/17 09:43:28 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * --- 1,4 ---- ! /* $OpenBSD: file.c,v 1.10 2015/07/17 09:51:18 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * *************** *** 233,239 **** return NULL; } f = xmalloc(sizeof(struct file)); ! f->nfds = nfds; f->ops = ops; f->arg = arg; f->name = name; --- 233,239 ---- return NULL; } f = xmalloc(sizeof(struct file)); ! f->max_nfds = nfds; f->ops = ops; f->arg = arg; f->name = name; *************** *** 246,252 **** log_puts(": created\n"); } #endif ! file_nfds += f->nfds; return f; } --- 246,252 ---- log_puts(": created\n"); } #endif ! file_nfds += f->max_nfds; return f; } *************** *** 259,265 **** panic(); } #endif ! file_nfds -= f->nfds; f->state = FILE_ZOMB; #ifdef DEBUG if (log_level >= 3) { --- 259,265 ---- panic(); } #endif ! file_nfds -= f->max_nfds; f->state = FILE_ZOMB; #ifdef DEBUG if (log_level >= 3) {