summaryrefslogtreecommitdiff
path: root/server/tests/hash_unittest.c
diff options
context:
space:
mode:
authorStephen Morris <stephen@isc.org>2012-07-04 17:06:32 +0100
committerStephen Morris <stephen@isc.org>2012-07-04 17:06:32 +0100
commit904a771add4f09d2ab155a5dc010873254adebe2 (patch)
treef8f23dd2317f2e4e6dfee23b5897da813264e9ad /server/tests/hash_unittest.c
parenta5fdc5179d6cf46125fb736350857d7015c1b4d5 (diff)
downloadisc-dhcp-904a771add4f09d2ab155a5dc010873254adebe2.tar.gz
[rt25901_atf] Minor corrections to some files
Minor corrections to some of the atf.dox documentation. Also modified hash_unitest.c to avoid problems in "printf" (the format string %lu was wrong for a size_t on my machine, so an explicit cast was made to the correct type).
Diffstat (limited to 'server/tests/hash_unittest.c')
-rw-r--r--server/tests/hash_unittest.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/tests/hash_unittest.c b/server/tests/hash_unittest.c
index bf71ebf9..da2046d2 100644
--- a/server/tests/hash_unittest.c
+++ b/server/tests/hash_unittest.c
@@ -107,7 +107,8 @@ void lease_hash_test_2hosts(unsigned char clientid1[], size_t clientid1_len,
unsigned char clientid2[], size_t clientid2_len) {
printf("Checking hash operation for 2 hosts: clientid1-len=%lu"
- "clientid2-len=%lu\n", clientid1_len, clientid2_len);
+ "clientid2-len=%lu\n", (unsigned long) clientid1_len,
+ (unsigned long) clientid2_len);
dhcp_db_objects_setup ();
dhcp_common_objects_setup ();
@@ -300,7 +301,8 @@ void lease_hash_test_3hosts(unsigned char clientid1[], size_t clientid1_len,
printf("Checking hash operation for 3 hosts: clientid1-len=%lu"
" clientid2-len=%lu clientid3-len=%lu\n",
- clientid1_len, clientid2_len, clientid3_len);
+ (unsigned long) clientid1_len, (unsigned long) clientid2_len,
+ (unsigned long) clientid3_len);
dhcp_db_objects_setup ();
dhcp_common_objects_setup ();