diff options
Diffstat (limited to 'src/libunixonacid/unixmessage_drop.c')
-rw-r--r-- | src/libunixonacid/unixmessage_drop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libunixonacid/unixmessage_drop.c b/src/libunixonacid/unixmessage_drop.c index 7fa34fb..e51a8d0 100644 --- a/src/libunixonacid/unixmessage_drop.c +++ b/src/libunixonacid/unixmessage_drop.c @@ -7,7 +7,7 @@ void unixmessage_drop (unixmessage_t const *m) { int e = errno ; - register unsigned int i = 0 ; - for (; i < m->nfds ; i++) fd_close(m->fds[i]) ; + unsigned int i = m->nfds ; + while (i--) fd_close(m->fds[i]) ; errno = e ; } |