summaryrefslogtreecommitdiffstats
path: root/lib/hashtable.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-08-11 04:49:07 (GMT)
committerThomas Haller <thaller@redhat.com>2019-08-16 05:42:03 (GMT)
commitde72910e6b3ec4503f23538682a89c4d444c7a92 (patch)
treeadb4ac751ff7e9d2cbf3a17d9c2191fb0d80e56f /lib/hashtable.c
parent1a88619b72c77b5390076ad703bfa3de4fa0348d (diff)
downloadlibnl-de72910e6b3ec4503f23538682a89c4d444c7a92.zip
libnl-de72910e6b3ec4503f23538682a89c4d444c7a92.tar.gz
libnl-de72910e6b3ec4503f23538682a89c4d444c7a92.tar.bz2
all: Avoid pointer arithmetic on `void *`
ISO C requires that the pointer operand to the binary + operator be to a complete object type[0]. [0] http://port70.net/~nsz/c/c11/n1570.html#6.5.6p2
Diffstat (limited to 'lib/hashtable.c')
-rw-r--r--lib/hashtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hashtable.c b/lib/hashtable.c
index bf6981e..db4ed8b 100644
--- a/lib/hashtable.c
+++ b/lib/hashtable.c
@@ -192,7 +192,7 @@ int nl_hash_table_del(nl_hash_table_t *ht, struct nl_object *obj)
uint32_t nl_hash(void *k, size_t length, uint32_t initval)
{
- return(__nl_hash(k, length, initval));
+ return(__nl_hash((char *) k, length, initval));
}
/** @} */