From 9b8d802ca89027de46ee45fbc9adf978a16e7927 Mon Sep 17 00:00:00 2001 From: Epoch Qwert Date: Sun, 7 Sep 2014 02:53:24 -0500 Subject: small fix with libhashtable's header --- libhashtable/example.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libhashtable/example.c') diff --git a/libhashtable/example.c b/libhashtable/example.c index 614e440..bc42a67 100644 --- a/libhashtable/example.c +++ b/libhashtable/example.c @@ -1,5 +1,5 @@ #include -#include "libhashtable.h" +#include "hashtable.h" extern char **environ; @@ -8,14 +8,13 @@ int main(int argc,char *argv[]) { int i; char *name; char *value; - inittable(&ht); + inittable(&ht,65535); for(i=0;environ[i];i++) { name=strdup(environ[i]); if((value=strchr(name,'=') )){ *value=0; value++; } - //printf("'%s' = '%s'\n",name,value); ht_setkey(&ht,name,value); free(name); } -- cgit v1.2.3