From: Jann Horn Date: Mon, 8 Jun 2015 21:01:27 +0000 (+0200) Subject: add assert header to jh.h X-Git-Url: http://git.thejh.net/?a=commitdiff_plain;h=4d174a188ea21b0f07c5d53281fe3a04aa6b8bdd;p=libjh.git add assert header to jh.h --- diff --git a/bufchain.c b/bufchain.c index 1359f6d..422e51a 100644 --- a/bufchain.c +++ b/bufchain.c @@ -2,8 +2,6 @@ #include #include #include -#include -#include #include int bufio_chain_append(bufio_chain *bc, void *buf, size_t len) { diff --git a/header.h b/header.h index 957788f..ac8c368 100644 --- a/header.h +++ b/header.h @@ -1,4 +1,5 @@ #include +#include /***** COMPILER-SPECIFIC STUFF *****/ #ifdef __GNUC__ diff --git a/hex.c b/hex.c index bdd37ab..3d9d07e 100644 --- a/hex.c +++ b/hex.c @@ -1,7 +1,6 @@ // Copyright (2013) Jann Horn HEADER #include -#include #include static inline char hexchar(unsigned char c) { diff --git a/io.c b/io.c index ef1f912..1ef3d3d 100644 --- a/io.c +++ b/io.c @@ -8,7 +8,6 @@ HEADER #include #include #include #include -#include #include // Wrapper for `read` that retries on partial reads. @@ -214,4 +213,4 @@ err_dup_out: fclose(*in); err_out: return EAI_SYSTEM; -} \ No newline at end of file +} diff --git a/netconn.c b/netconn.c index 329b837..3ecb5cb 100644 --- a/netconn.c +++ b/netconn.c @@ -3,8 +3,6 @@ #include #include #include -#include -#include static void connection_waiting_cb(struct ev_loop *loop, ev_io *w, int revents) { bufio_connection *con = (bufio_connection *)w->data; diff --git a/ppm.c b/ppm.c index 87b18e6..a8bf94a 100644 --- a/ppm.c +++ b/ppm.c @@ -2,7 +2,6 @@ #include #include -#include #include #include