diff options
Diffstat (limited to 'toxcore/network.c')
-rw-r--r-- | toxcore/network.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/toxcore/network.c b/toxcore/network.c index e42c962b..b472ed31 100644 --- a/toxcore/network.c +++ b/toxcore/network.c | |||
@@ -494,14 +494,15 @@ int networking_at_startup(void) | |||
494 | return 0; | 494 | return 0; |
495 | } | 495 | } |
496 | 496 | ||
497 | /* TODO: Put this somewhere | 497 | /* TODO(irungentoo): Put this somewhere */ |
498 | #if 0 | ||
498 | static void at_shutdown(void) | 499 | static void at_shutdown(void) |
499 | { | 500 | { |
500 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) | 501 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) |
501 | WSACleanup(); | 502 | WSACleanup(); |
502 | #endif | 503 | #endif |
503 | } | 504 | } |
504 | */ | 505 | #endif |
505 | 506 | ||
506 | /* Initialize networking. | 507 | /* Initialize networking. |
507 | * Added for reverse compatibility with old new_networking calls. | 508 | * Added for reverse compatibility with old new_networking calls. |
@@ -873,7 +874,7 @@ void ipport_copy(IP_Port *target, const IP_Port *source) | |||
873 | * writes error message into the buffer on error | 874 | * writes error message into the buffer on error |
874 | */ | 875 | */ |
875 | /* there would be INET6_ADDRSTRLEN, but it might be too short for the error message */ | 876 | /* there would be INET6_ADDRSTRLEN, but it might be too short for the error message */ |
876 | static char addresstext[96]; // FIXME magic number. Why not INET6_ADDRSTRLEN ? | 877 | static char addresstext[96]; // TODO(irungentoo): magic number. Why not INET6_ADDRSTRLEN ? |
877 | const char *ip_ntoa(const IP *ip) | 878 | const char *ip_ntoa(const IP *ip) |
878 | { | 879 | { |
879 | if (ip) { | 880 | if (ip) { |