diff options
| author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2018-06-13 13:18:10 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-06-13 13:39:55 +0200 |
| commit | 47c922f1360990f2da8363aafa0798551a2128ef (patch) | |
| tree | 8009e3a2bc692ae279bdc140a931b4baae927a25 /src/ipcpd | |
| parent | 39e0358161212c5d662208360c1fdcb68ee6b64a (diff) | |
| download | ouroboros-47c922f1360990f2da8363aafa0798551a2128ef.zip ouroboros-47c922f1360990f2da8363aafa0798551a2128ef.tar.gz | |
lib: Use macros for all time utility functions0.11.9
This replaces the time utility functions with macros. This avoids
using library functions in the tools and also slightly speeds up the
implementation.
Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/ipcpd')
| -rw-r--r-- | src/ipcpd/normal/dht.c | 1 | ||||
| -rw-r--r-- | src/ipcpd/normal/dir.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ipcpd/normal/dht.c b/src/ipcpd/normal/dht.c index 069b89d..a6f1928 100644 --- a/src/ipcpd/normal/dht.c +++ b/src/ipcpd/normal/dht.c @@ -48,6 +48,7 @@ #include <string.h> #include <assert.h> #include <inttypes.h> +#include <limits.h> #include "kademlia.pb-c.h" typedef KadMsg kad_msg_t; diff --git a/src/ipcpd/normal/dir.c b/src/ipcpd/normal/dir.c index 1c88397..345d220 100644 --- a/src/ipcpd/normal/dir.c +++ b/src/ipcpd/normal/dir.c @@ -37,6 +37,7 @@ #include <string.h> #include <assert.h> #include <inttypes.h> +#include <limits.h> #define KAD_B (hash_len(ipcpi.dir_hash_algo) * CHAR_BIT) |
