diff options
Diffstat (limited to 'src/transport/gnunet-communicator-tcp.c')
-rw-r--r-- | src/transport/gnunet-communicator-tcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c index 576c20278..c883166c6 100644 --- a/src/transport/gnunet-communicator-tcp.c +++ b/src/transport/gnunet-communicator-tcp.c | |||
@@ -1103,7 +1103,7 @@ tcp_address_to_sockaddr (const char *bindto, socklen_t *sock_len) | |||
1103 | char *colon; | 1103 | char *colon; |
1104 | char *cp; | 1104 | char *cp; |
1105 | 1105 | ||
1106 | if (1 == SSCANF (bindto, "%u%1s", &port, dummy)) | 1106 | if (1 == sscanf (bindto, "%u%1s", &port, dummy)) |
1107 | { | 1107 | { |
1108 | /* interpreting value as just a PORT number */ | 1108 | /* interpreting value as just a PORT number */ |
1109 | if (port > UINT16_MAX) | 1109 | if (port > UINT16_MAX) |
@@ -1146,7 +1146,7 @@ tcp_address_to_sockaddr (const char *bindto, socklen_t *sock_len) | |||
1146 | /* interpet value after colon as port */ | 1146 | /* interpet value after colon as port */ |
1147 | *colon = '\0'; | 1147 | *colon = '\0'; |
1148 | colon++; | 1148 | colon++; |
1149 | if (1 == SSCANF (colon, "%u%1s", &port, dummy)) | 1149 | if (1 == sscanf (colon, "%u%1s", &port, dummy)) |
1150 | { | 1150 | { |
1151 | /* interpreting value as just a PORT number */ | 1151 | /* interpreting value as just a PORT number */ |
1152 | if (port > UINT16_MAX) | 1152 | if (port > UINT16_MAX) |
@@ -1877,7 +1877,7 @@ mq_init (void *cls, const struct GNUNET_PeerIdentity *peer, const char *address) | |||
1877 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 1877 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
1878 | "socket(%d) failed: %s", | 1878 | "socket(%d) failed: %s", |
1879 | in->sa_family, | 1879 | in->sa_family, |
1880 | STRERROR (errno)); | 1880 | strerror (errno)); |
1881 | GNUNET_free (in); | 1881 | GNUNET_free (in); |
1882 | return GNUNET_SYSERR; | 1882 | return GNUNET_SYSERR; |
1883 | } | 1883 | } |
@@ -1886,7 +1886,7 @@ mq_init (void *cls, const struct GNUNET_PeerIdentity *peer, const char *address) | |||
1886 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 1886 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
1887 | "connect to `%s' failed: %s", | 1887 | "connect to `%s' failed: %s", |
1888 | address, | 1888 | address, |
1889 | STRERROR (errno)); | 1889 | strerror (errno)); |
1890 | GNUNET_NETWORK_socket_close (sock); | 1890 | GNUNET_NETWORK_socket_close (sock); |
1891 | GNUNET_free (in); | 1891 | GNUNET_free (in); |
1892 | return GNUNET_SYSERR; | 1892 | return GNUNET_SYSERR; |