From e2c95ad273d3afa46ee3c67fff3304f6eb21dab3 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Thu, 21 Sep 2017 17:58:56 +0200 Subject: lib: Include string.h in hashtable.c for memcpy --- src/lib/hashtable.c | 1 + 1 file changed, 1 insertion(+) 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 #include +#include struct htable_entry { struct list_head next; -- cgit v1.2.3 From 20c88510ff304106a637326894e48c98eedd7498 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Thu, 21 Sep 2017 18:11:17 +0200 Subject: ipcpd: Mark len parameter as unused in simple_pff --- src/ipcpd/normal/pol/simple_pff.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3