summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_sender_init.c
blob: 07c0bc25f053512b677d5cfe4bd282b07ee5f7cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
#include <skalibs/unixmessage.h>

void unixmessage_sender_init (unixmessage_sender_t *b, int fd)
{
  b->fd = fd ;
  b->data = stralloc_zero ;
  b->fds = genalloc_zero ;
  b->offsets = genalloc_zero ;
  b->head = 0 ;
}