projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- enable fortify as well
[ossec-hids.git]
/
src
/
shared
/
tests
/
hash_test.c
diff --git
a/src/shared/tests/hash_test.c
b/src/shared/tests/hash_test.c
index
d1464cf
..
367d028
100755
(executable)
--- a/
src/shared/tests/hash_test.c
+++ b/
src/shared/tests/hash_test.c
@@
-9,7
+9,7
@@
int main(int argc, char **argv)
char *tmp;
char buf[1024];
OSHash *mhash;
char *tmp;
char buf[1024];
OSHash *mhash;
-
+
mhash = OSHash_Create();
while(1)
mhash = OSHash_Create();
while(1)
@@
-22,13
+22,13
@@
int main(int argc, char **argv)
if(strncmp(buf, "get ", 4) == 0)
{
printf("Getting key: '%s'\n", buf + 4);
if(strncmp(buf, "get ", 4) == 0)
{
printf("Getting key: '%s'\n", buf + 4);
- printf("Found: '%s'\n", (char *)OSHash_Get(mhash, buf + 4));
+ printf("Found: '%s'\n", (char *)OSHash_Get(mhash, buf + 4));
}
else
{
printf("Adding key: '%s'\n", buf);
i = OSHash_Add(mhash, strdup(buf), strdup(buf));
}
else
{
printf("Adding key: '%s'\n", buf);
i = OSHash_Add(mhash, strdup(buf), strdup(buf));
-
+
printf("rc = %d\n", i);
}
}
printf("rc = %d\n", i);
}
}