diff options
author | David McMackins II <contact@mcmackins.org> | 2020-02-25 18:10:37 -0600 |
---|---|---|
committer | David McMackins II <contact@mcmackins.org> | 2020-02-25 18:10:37 -0600 |
commit | 7c9cf4a184595f589ff11bd0008dd4a8c54e1a25 (patch) | |
tree | cc8cf37ff4534428649b4b34813b3d7b4348011c /pfxtree-test.c | |
parent | 886ee4562ed98f97320b30a1adb4e5b48a2b42a5 (diff) |
Use ANSI C
Diffstat (limited to 'pfxtree-test.c')
-rw-r--r-- | pfxtree-test.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pfxtree-test.c b/pfxtree-test.c index 8d9f25e..d176505 100644 --- a/pfxtree-test.c +++ b/pfxtree-test.c @@ -1,6 +1,6 @@ /* * pfxtree-test - Delwink prefix tree library unit test - * Copyright (C) 2017 Delwink, LLC + * Copyright (C) 2017, 2020 Delwink, LLC * * Redistributions, modified or unmodified, in whole or in part, must retain * applicable copyright or other legal privilege notices, these conditions, and @@ -59,10 +59,12 @@ main(void) assert(NULL == pt_search(p, "hello")); assert(pt_search(p, "hell") != NULL); - void *dummy = malloc(0xDFDF); - assert(dummy != NULL); - assert(0 == pt_add_p(p, "hello", dummy)); - assert('p' == pt_data_type(pt_search(p, "hello"))); + { + void *dummy = malloc(0xDFDF); + assert(dummy != NULL); + assert(0 == pt_add_p(p, "hello", dummy)); + assert('p' == pt_data_type(pt_search(p, "hello"))); + } assert(PT_ENOWORD == pt_del(p, "asdf")); |