about summary refs log tree commit diff
path: root/src/libunixonacid/unixmessage_drop.c
blob: d9fc42935383bdbdb0f5c9f023242a93c37b4b70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

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

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