diff options
Diffstat (limited to 'src/libunixonacid')
-rw-r--r-- | src/libunixonacid/unixmessage_receiver_0.c | 6 | ||||
-rw-r--r-- | src/libunixonacid/unixmessage_sender_timed_flush.c | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/libunixonacid/unixmessage_receiver_0.c b/src/libunixonacid/unixmessage_receiver_0.c index 2b6f165..b43bdfb 100644 --- a/src/libunixonacid/unixmessage_receiver_0.c +++ b/src/libunixonacid/unixmessage_receiver_0.c @@ -4,12 +4,12 @@ #include <skalibs/unixmessage.h> -static char mainbuf[UNIXMESSAGE_RECEIVER_MAINBUFSIZE] ; -static char auxbuf[UNIXMESSAGE_RECEIVER_AUXBUFSIZE] ; +static char mainbuf[UNIXMESSAGE_BUFSIZE] ; +static char auxbuf[UNIXMESSAGE_AUXBUFSIZE] ; unixmessage_receiver_t unixmessage_receiver_0_ = UNIXMESSAGE_RECEIVER_ZERO ; int unixmessage_receiver_0_init () { - return unixmessage_receiver_init(&unixmessage_receiver_0_, 0, mainbuf, UNIXMESSAGE_RECEIVER_MAINBUFSIZE, auxbuf, UNIXMESSAGE_RECEIVER_AUXBUFSIZE) ; + return unixmessage_receiver_init(&unixmessage_receiver_0_, 0, mainbuf, UNIXMESSAGE_BUFSIZE, auxbuf, UNIXMESSAGE_AUXBUFSIZE) ; } diff --git a/src/libunixonacid/unixmessage_sender_timed_flush.c b/src/libunixonacid/unixmessage_sender_timed_flush.c index 74e4937..e144c82 100644 --- a/src/libunixonacid/unixmessage_sender_timed_flush.c +++ b/src/libunixonacid/unixmessage_sender_timed_flush.c @@ -1,14 +1,13 @@ /* ISC license. */ #include <skalibs/functypes.h> -#include <skalibs/genalloc.h> #include <skalibs/tai.h> #include <skalibs/unix-timed.h> #include <skalibs/unixmessage.h> static int unixmessage_sender_isnonempty (unixmessage_sender_t *b) { - return !!genalloc_len(unsigned int, &b->offsets) ; + return !unixmessage_sender_isempty(b) ; } int unixmessage_sender_timed_flush (unixmessage_sender_t *b, tain_t const *deadline, tain_t *stamp) |