blob: 10934e516982d198fdea2be2acd03aada2dc064a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* ISC license. */
#include <errno.h>
#include <skalibs/error.h>
#include <skalibs/skaclient.h>
#include <skalibs/unixmessage.h>
int skaclient_default_cb (unixmessage_t const *m, void *p)
{
unsigned char *err = p ;
if (m->len != 1 || m->nfds) return (errno = EPROTO, 0) ;
*err = m->s[0] ;
return 1 ;
}
|