summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_drop.c
blob: bf37df33082b6a37b619f68ee38b5497cc3f982a (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/djbunix.h>
#include <skalibs/unixmessage.h>

void unixmessage_drop (unixmessage_t const *m)
{
  unsigned int i = m->nfds ;
  while (i--) fd_close(m->fds[i]) ;
}