diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-09-21 16:14:02 +0000 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2017-09-21 16:14:02 +0000 |
commit | 269ce58f0ffc179d36fa44eb3b205f41e5343f13 (patch) | |
tree | 9500a8a332a6a8bbc43f158b58b1125bbcfbd291 /src | |
parent | 6ef3b4767b60c9fd7482bf4aa9b9271131e24053 (diff) | |
parent | 20c88510ff304106a637326894e48c98eedd7498 (diff) | |
download | ouroboros-269ce58f0ffc179d36fa44eb3b205f41e5343f13.tar.gz ouroboros-269ce58f0ffc179d36fa44eb3b205f41e5343f13.zip |
Merged in dstaesse/ouroboros/be-hashtable (pull request #610)
lib: Include string.h in hashtable.c for memcpy
Diffstat (limited to 'src')
-rw-r--r-- | src/ipcpd/normal/pol/simple_pff.c | 4 | ||||
-rw-r--r-- | src/lib/hashtable.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ipcpd/normal/pol/simple_pff.c b/src/ipcpd/normal/pol/simple_pff.c index 7af4663c..bb2fb098 100644 --- a/src/ipcpd/normal/pol/simple_pff.c +++ b/src/ipcpd/normal/pol/simple_pff.c @@ -103,6 +103,8 @@ int simple_pff_add(struct pff_i * pff_i, assert(pff_i); assert(len > 0); + (void) len; + val = malloc(sizeof(*val)); if (val == NULL) return -ENOMEM; @@ -127,6 +129,8 @@ int simple_pff_update(struct pff_i * pff_i, assert(pff_i); assert(len > 0); + (void) len; + val = malloc(sizeof(*val)); if (val == NULL) return -ENOMEM; diff --git a/src/lib/hashtable.c b/src/lib/hashtable.c index d0d46598..16de8bc9 100644 --- a/src/lib/hashtable.c +++ b/src/lib/hashtable.c @@ -26,6 +26,7 @@ #include <ouroboros/hash.h> #include <assert.h> +#include <string.h> struct htable_entry { struct list_head next; |