summaryrefslogtreecommitdiff
path: root/toxcore/network.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-02-23 17:11:00 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-03-16 01:57:26 +0000
commitaa050954195f6323775ed68f4262edf2341c6953 (patch)
tree0b2f53b23b97dc1e90f798ae97321a727c413462 /toxcore/network.c
parent78d5b74dcee1208efe19dd115006034501c4380f (diff)
Remove the use of the 'hh' format specifier.
It's not supported in mingw. See https://github.com/TokTok/c-toxcore/issues/786.
Diffstat (limited to 'toxcore/network.c')
-rw-r--r--toxcore/network.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/network.c b/toxcore/network.c
index 3aaeb075..d88ba816 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -500,7 +500,7 @@ static int receivepacket(Logger *log, Socket sock, IP_Port *ip_port, uint8_t *da
500 if (fail_or_len < 0) { 500 if (fail_or_len < 0) {
501 501
502 if (fail_or_len < 0 && errno != EWOULDBLOCK) { 502 if (fail_or_len < 0 && errno != EWOULDBLOCK) {
503 LOGGER_ERROR(log, "Unexpected error reading from socket: %u, %s\n", errno, strerror(errno)); 503 LOGGER_ERROR(log, "Unexpected error reading from socket: %u, %s", errno, strerror(errno));
504 } 504 }
505 505
506 return -1; /* Nothing received. */ 506 return -1; /* Nothing received. */
@@ -657,7 +657,7 @@ Networking_Core *new_networking_ex(Logger *log, IP ip, uint16_t port_from, uint1
657 657
658 /* maybe check for invalid IPs like 224+.x.y.z? if there is any IP set ever */ 658 /* maybe check for invalid IPs like 224+.x.y.z? if there is any IP set ever */
659 if (ip.family != TOX_AF_INET && ip.family != TOX_AF_INET6) { 659 if (ip.family != TOX_AF_INET && ip.family != TOX_AF_INET6) {
660 LOGGER_ERROR(log, "Invalid address family: %u\n", ip.family); 660 LOGGER_ERROR(log, "Invalid address family: %u", ip.family);
661 return nullptr; 661 return nullptr;
662 } 662 }
663 663
@@ -681,7 +681,7 @@ Networking_Core *new_networking_ex(Logger *log, IP ip, uint16_t port_from, uint1
681 681
682 /* Check for socket error. */ 682 /* Check for socket error. */
683 if (!sock_valid(temp->sock)) { 683 if (!sock_valid(temp->sock)) {
684 LOGGER_ERROR(log, "Failed to get a socket?! %u, %s\n", errno, strerror(errno)); 684 LOGGER_ERROR(log, "Failed to get a socket?! %u, %s", errno, strerror(errno));
685 free(temp); 685 free(temp);
686 686
687 if (error) { 687 if (error) {