=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/file.h,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/sndiod/file.h 2015/07/17 09:51:18 1.2 --- src/usr.bin/sndiod/file.h 2015/07/17 10:15:24 1.3 *************** *** 1,4 **** ! /* $OpenBSD: file.h,v 1.2 2015/07/17 09:51:18 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * --- 1,4 ---- ! /* $OpenBSD: file.h,v 1.3 2015/07/17 10:15:24 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * *************** *** 47,59 **** struct file { struct file *next; /* next in file_list */ - struct pollfd *pfd; /* arg to poll(2) syscall */ struct fileops *ops; /* event handlers */ void *arg; /* argument to event handlers */ #define FILE_INIT 0 /* ready */ #define FILE_ZOMB 1 /* closed, but not free()d yet */ unsigned int state; /* one of above */ unsigned int max_nfds; /* max number of descriptors */ char *name; /* for debug purposes */ }; --- 47,59 ---- struct file { struct file *next; /* next in file_list */ struct fileops *ops; /* event handlers */ void *arg; /* argument to event handlers */ #define FILE_INIT 0 /* ready */ #define FILE_ZOMB 1 /* closed, but not free()d yet */ unsigned int state; /* one of above */ unsigned int max_nfds; /* max number of descriptors */ + int nfds; /* number of descriptors polled */ char *name; /* for debug purposes */ };