summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-02-20 11:40:19 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-02-20 11:40:19 +0000
commit42df0cd80d936fd8b6b8207df08ef321412d7633 (patch)
tree1fc28afdf0fb0937c580a57754d6b2d07344e475
parent8887b16764603145d3bb9b4c3d56a3c0411b366e (diff)
downloads6-networking-42df0cd80d936fd8b6b8207df08ef321412d7633.tar.xz
Adapt to skalibs/posixishard.h
-rw-r--r--src/clock/s6-sntpclock.c4
-rw-r--r--src/clock/s6-taiclock.c3
-rw-r--r--src/libs6net/s6net_ident_reply_get.c4
-rw-r--r--src/libs6net/s6net_ident_reply_parse.c4
-rw-r--r--src/sbearssl/sbearssl_pem_decode_from_buffer.c5
-rw-r--r--src/sbearssl/sbearssl_pem_decode_from_string.c5
6 files changed, 18 insertions, 7 deletions
diff --git a/src/clock/s6-sntpclock.c b/src/clock/s6-sntpclock.c
index 1044be5..a171dc4 100644
--- a/src/clock/s6-sntpclock.c
+++ b/src/clock/s6-sntpclock.c
@@ -4,12 +4,12 @@
#include <stdint.h>
#include <unistd.h>
#include <errno.h>
-#include <skalibs/error.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/uint64.h>
#include <skalibs/types.h>
#include <skalibs/sgetopt.h>
#include <skalibs/allreadwrite.h>
-#include <skalibs/error.h>
#include <skalibs/strerr2.h>
#include <skalibs/tai.h>
#include <skalibs/djbtime.h>
diff --git a/src/clock/s6-taiclock.c b/src/clock/s6-taiclock.c
index 8ea58c1..f36a047 100644
--- a/src/clock/s6-taiclock.c
+++ b/src/clock/s6-taiclock.c
@@ -4,7 +4,8 @@
#include <stdint.h>
#include <unistd.h>
#include <errno.h>
-#include <skalibs/error.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/types.h>
#include <skalibs/sgetopt.h>
#include <skalibs/allreadwrite.h>
diff --git a/src/libs6net/s6net_ident_reply_get.c b/src/libs6net/s6net_ident_reply_get.c
index f4d2b01..0dc7130 100644
--- a/src/libs6net/s6net_ident_reply_get.c
+++ b/src/libs6net/s6net_ident_reply_get.c
@@ -1,13 +1,15 @@
/* ISC license. */
#include <errno.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/uint16.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/buffer.h>
-#include <skalibs/error.h>
#include <skalibs/djbunix.h>
#include <skalibs/ip46.h>
#include <skalibs/unix-timed.h>
+
#include <s6-networking/ident.h>
ssize_t s6net_ident_reply_get (char *s, ip46_t const *remoteip, uint16_t remoteport, ip46_t const *localip, uint16_t localport, tain_t const *deadline, tain_t *stamp)
diff --git a/src/libs6net/s6net_ident_reply_parse.c b/src/libs6net/s6net_ident_reply_parse.c
index 7f2daab..b55793d 100644
--- a/src/libs6net/s6net_ident_reply_parse.c
+++ b/src/libs6net/s6net_ident_reply_parse.c
@@ -2,9 +2,11 @@
#include <string.h>
#include <errno.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/uint16.h>
#include <skalibs/bytestr.h>
-#include <skalibs/error.h>
+
#include <s6-networking/ident.h>
static size_t skipspace (char const *s)
diff --git a/src/sbearssl/sbearssl_pem_decode_from_buffer.c b/src/sbearssl/sbearssl_pem_decode_from_buffer.c
index cacabd9..feed155 100644
--- a/src/sbearssl/sbearssl_pem_decode_from_buffer.c
+++ b/src/sbearssl/sbearssl_pem_decode_from_buffer.c
@@ -2,11 +2,14 @@
#include <sys/uio.h>
#include <errno.h>
+
#include <bearssl.h>
-#include <skalibs/error.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/buffer.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
+
#include <s6-networking/sbearssl.h>
#include "sbearssl-internal.h"
diff --git a/src/sbearssl/sbearssl_pem_decode_from_string.c b/src/sbearssl/sbearssl_pem_decode_from_string.c
index b9f7f15..10819d8 100644
--- a/src/sbearssl/sbearssl_pem_decode_from_string.c
+++ b/src/sbearssl/sbearssl_pem_decode_from_string.c
@@ -1,10 +1,13 @@
/* ISC license. */
#include <errno.h>
+
#include <bearssl.h>
-#include <skalibs/error.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
+
#include <s6-networking/sbearssl.h>
#include "sbearssl-internal.h"