summaryrefslogtreecommitdiff
path: root/src/libunixonacid
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-05 03:57:06 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-05 03:57:06 +0000
commit79ba7ac3971ebbbcd10f43c6b8b71d800589a6b0 (patch)
treed5e1ce3a1a799ef458febcae85deea150136ed4e /src/libunixonacid
parent82724c82fd69720a579a8b245637ac247c08c700 (diff)
downloadskalibs-79ba7ac3971ebbbcd10f43c6b8b71d800589a6b0.tar.xz
More adjustments to unixmessage and skaclient
Diffstat (limited to 'src/libunixonacid')
-rw-r--r--src/libunixonacid/unixmessage_receiver_0.c6
-rw-r--r--src/libunixonacid/unixmessage_sender_timed_flush.c3
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)