diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-02 16:29:21 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-02 16:29:21 -0400 |
commit | 61f41474e39e151ce657c17566606227e7155632 (patch) | |
tree | da2f984622ccf09f812671262383e9b009a69741 /testing | |
parent | 802236272fbe4d4dbf982a14c6b552dafe699999 (diff) |
Fixed warnings.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/DHT_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c index 588450e2..f1940614 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c | |||
@@ -60,11 +60,11 @@ void print_clientlist() | |||
60 | } | 60 | } |
61 | p_ip = close_clientlist[i].ip_port; | 61 | p_ip = close_clientlist[i].ip_port; |
62 | printf("\nIP: %u.%u.%u.%u Port: %u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); | 62 | printf("\nIP: %u.%u.%u.%u Port: %u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); |
63 | printf("\nTimestamp: %u", close_clientlist[i].timestamp); | 63 | printf("\nTimestamp: %llu",(long long unsigned int) close_clientlist[i].timestamp); |
64 | printf("\nLast pinged: %u\n", close_clientlist[i].last_pinged); | 64 | printf("\nLast pinged: %llu\n",(long long unsigned int) close_clientlist[i].last_pinged); |
65 | p_ip = close_clientlist[i].ret_ip_port; | 65 | p_ip = close_clientlist[i].ret_ip_port; |
66 | printf("OUR IP: %u.%u.%u.%u Port: %u\n",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); | 66 | printf("OUR IP: %u.%u.%u.%u Port: %u\n",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); |
67 | printf("Timestamp: %u\n", close_clientlist[i].ret_timestamp); | 67 | printf("Timestamp: %llu\n",(long long unsigned int) close_clientlist[i].ret_timestamp); |
68 | } | 68 | } |
69 | } | 69 | } |
70 | 70 | ||
@@ -93,11 +93,11 @@ void print_friendlist() | |||
93 | } | 93 | } |
94 | p_ip = friends_list[k].client_list[i].ip_port; | 94 | p_ip = friends_list[k].client_list[i].ip_port; |
95 | printf("\nIP: %u.%u.%u.%u:%u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); | 95 | printf("\nIP: %u.%u.%u.%u:%u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); |
96 | printf("\nTimestamp: %u", friends_list[k].client_list[i].timestamp); | 96 | printf("\nTimestamp: %llu",(long long unsigned int) friends_list[k].client_list[i].timestamp); |
97 | printf("\nLast pinged: %u\n", friends_list[k].client_list[i].last_pinged); | 97 | printf("\nLast pinged: %llu\n",(long long unsigned int) friends_list[k].client_list[i].last_pinged); |
98 | p_ip = friends_list[k].client_list[i].ret_ip_port; | 98 | p_ip = friends_list[k].client_list[i].ret_ip_port; |
99 | printf("ret IP: %u.%u.%u.%u:%u\n",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); | 99 | printf("ret IP: %u.%u.%u.%u:%u\n",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); |
100 | printf("Timestamp: %u\n", friends_list[k].client_list[i].ret_timestamp); | 100 | printf("Timestamp: %llu\n", (long long unsigned int)friends_list[k].client_list[i].ret_timestamp); |
101 | } | 101 | } |
102 | } | 102 | } |
103 | } | 103 | } |