mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge pull request #404 from KostyaKow/small_fixes
Fixed a printf argument.
This commit is contained in:
commit
29264b58fc
|
@ -56,7 +56,7 @@ void print_clientlist()
|
||||||
for(i = 0; i < 4; i++) {
|
for(i = 0; i < 4; i++) {
|
||||||
printf("ClientID: ");
|
printf("ClientID: ");
|
||||||
for(j = 0; j < 32; j++) {
|
for(j = 0; j < 32; j++) {
|
||||||
printf("%c", close_clientlist[i].client_id[j]);
|
printf("%hhX", close_clientlist[i].client_id[j]);
|
||||||
}
|
}
|
||||||
p_ip = close_clientlist[i].ip_port;
|
p_ip = close_clientlist[i].ip_port;
|
||||||
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));
|
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));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user