diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-04-24 13:31:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-04-24 13:31:29 +0000 |
commit | 8ddd3c314faec2c7f0fe9c0fe7816ca5be54011d (patch) | |
tree | 3e72f836df83341643be745d439315bff9707cec /src/util/connection.c | |
parent | 09565818e7abf85e5f04f3490d8715872cf6807c (diff) | |
download | gnunet-8ddd3c314faec2c7f0fe9c0fe7816ca5be54011d.tar.gz gnunet-8ddd3c314faec2c7f0fe9c0fe7816ca5be54011d.zip |
-minor fixes
Diffstat (limited to 'src/util/connection.c')
-rw-r--r-- | src/util/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/connection.c b/src/util/connection.c index 1e792adc8..f6182ebbd 100644 --- a/src/util/connection.c +++ b/src/util/connection.c | |||
@@ -1064,7 +1064,7 @@ RETRY: | |||
1064 | * | 1064 | * |
1065 | * @param connection connection handle | 1065 | * @param connection connection handle |
1066 | * @param max maximum number of bytes to read | 1066 | * @param max maximum number of bytes to read |
1067 | * @param timeout maximum amount of time to wait (use -1 for "forever") | 1067 | * @param timeout maximum amount of time to wait |
1068 | * @param receiver function to call with received data | 1068 | * @param receiver function to call with received data |
1069 | * @param receiver_cls closure for receiver | 1069 | * @param receiver_cls closure for receiver |
1070 | */ | 1070 | */ |
@@ -1076,6 +1076,7 @@ GNUNET_CONNECTION_receive (struct GNUNET_CONNECTION_Handle *connection, size_t m | |||
1076 | { | 1076 | { |
1077 | GNUNET_assert ((GNUNET_SCHEDULER_NO_TASK == connection->read_task) && | 1077 | GNUNET_assert ((GNUNET_SCHEDULER_NO_TASK == connection->read_task) && |
1078 | (NULL == connection->receiver)); | 1078 | (NULL == connection->receiver)); |
1079 | GNUNET_assert (NULL != receiver); | ||
1079 | connection->receiver = receiver; | 1080 | connection->receiver = receiver; |
1080 | connection->receiver_cls = receiver_cls; | 1081 | connection->receiver_cls = receiver_cls; |
1081 | connection->receive_timeout = GNUNET_TIME_relative_to_absolute (timeout); | 1082 | connection->receive_timeout = GNUNET_TIME_relative_to_absolute (timeout); |