From: Christian Grothoff Date: Wed, 25 May 2011 10:19:31 +0000 (+0000) Subject: warn if this happens X-Git-Tag: initial-import-from-subversion-38251~18429 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=acd5a863d4092349cea5ba19c1567d911ed93189;p=oweals%2Fgnunet.git warn if this happens --- diff --git a/src/util/client.c b/src/util/client.c index 3c31aaaa8..e131d1ae9 100644 --- a/src/util/client.c +++ b/src/util/client.c @@ -891,7 +891,10 @@ GNUNET_CLIENT_notify_transmit_ready (struct GNUNET_CLIENT_Connection *sock, struct GNUNET_CLIENT_TransmitHandle *th; if (NULL != sock->th) - return NULL; + { + GNUNET_break (0); + return NULL; + } th = GNUNET_malloc (sizeof (struct GNUNET_CLIENT_TransmitHandle)); th->sock = sock; th->size = size; diff --git a/src/util/connection.c b/src/util/connection.c index 7828dac53..9769c3cba 100644 --- a/src/util/connection.c +++ b/src/util/connection.c @@ -1630,7 +1630,10 @@ GNUNET_CONNECTION_notify_transmit_ready (struct GNUNET_CONNECTION_Handle notify, void *notify_cls) { if (sock->nth.notify_ready != NULL) - return NULL; + { + GNUNET_break (0); + return NULL; + } GNUNET_assert (notify != NULL); GNUNET_assert (size < GNUNET_SERVER_MAX_MESSAGE_SIZE); GNUNET_assert (sock->write_buffer_off <= sock->write_buffer_size); diff --git a/src/util/service.c b/src/util/service.c index 2338e795d..e88ac77c8 100644 --- a/src/util/service.c +++ b/src/util/service.c @@ -909,7 +909,9 @@ GNUNET_SERVICE_get_server_addresses (const char *serviceName, if (strlen(unixpath) >= sizeof(s_un.sun_path)) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - _("UNIXPATH `%s' too long, maximum length is %llu\n"),unixpath, sizeof(s_un.sun_path)); + _("UNIXPATH `%s' too long, maximum length is %llu\n"), + unixpath, + sizeof(s_un.sun_path)); GNUNET_free_non_null (hostname); GNUNET_free (unixpath); return GNUNET_SYSERR;