summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/dir.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-06-13 13:18:10 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2018-06-13 13:39:55 +0200
commit47c922f1360990f2da8363aafa0798551a2128ef (patch)
tree8009e3a2bc692ae279bdc140a931b4baae927a25 /src/ipcpd/normal/dir.c
parent39e0358161212c5d662208360c1fdcb68ee6b64a (diff)
downloadouroboros-8d792c613aaf636c46eef1e387a3466b1336be03.tar.gz
ouroboros-8d792c613aaf636c46eef1e387a3466b1336be03.zip
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/normal/dir.c')
-rw-r--r--src/ipcpd/normal/dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ipcpd/normal/dir.c b/src/ipcpd/normal/dir.c
index 1c883974..345d220d 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)