summaryrefslogtreecommitdiff
path: root/testing/DHT_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/DHT_test.c')
-rw-r--r--testing/DHT_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c
index 4c1a9cd8..9100c01a 100644
--- a/testing/DHT_test.c
+++ b/testing/DHT_test.c
@@ -80,7 +80,7 @@ void print_friendlist()
80 } 80 }
81} 81}
82 82
83void printpacket(char * data, uint32_t length, IP_Port ip_port) 83void printpacket(uint8_t * data, uint32_t length, IP_Port ip_port)
84{ 84{
85 uint32_t i; 85 uint32_t i;
86 printf("UNHANDLED PACKET RECEIVED\nLENGTH:%u\nCONTENTS:\n", length); 86 printf("UNHANDLED PACKET RECEIVED\nLENGTH:%u\nCONTENTS:\n", length);
@@ -102,7 +102,7 @@ int main(int argc, char *argv[])
102 printf("usage %s ip port client_id(of friend to find ip_port of)\n", argv[0]); 102 printf("usage %s ip port client_id(of friend to find ip_port of)\n", argv[0]);
103 exit(0); 103 exit(0);
104 } 104 }
105 addfriend(argv[3]); 105 addfriend((uint8_t *)argv[3]);
106 106
107 //initialize networking 107 //initialize networking
108 //bind to ip 0.0.0.0:PORT 108 //bind to ip 0.0.0.0:PORT
@@ -125,7 +125,7 @@ int main(int argc, char *argv[])
125 bootstrap(bootstrap_ip_port); 125 bootstrap(bootstrap_ip_port);
126 126
127 IP_Port ip_port; 127 IP_Port ip_port;
128 char data[MAX_UDP_PACKET_SIZE]; 128 uint8_t data[MAX_UDP_PACKET_SIZE];
129 uint32_t length; 129 uint32_t length;
130 130
131 while(1) 131 while(1)