diff options
Diffstat (limited to 'src/util/test_server_with_client_unix.c')
-rw-r--r-- | src/util/test_server_with_client_unix.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/util/test_server_with_client_unix.c b/src/util/test_server_with_client_unix.c index ec84b08f8..64f1d9c23 100644 --- a/src/util/test_server_with_client_unix.c +++ b/src/util/test_server_with_client_unix.c | |||
@@ -50,16 +50,18 @@ send_done (void *cls) | |||
50 | 50 | ||
51 | 51 | ||
52 | static void | 52 | static void |
53 | recv_cb (void *cls, struct GNUNET_SERVER_Client *argclient, | 53 | recv_cb (void *cls, |
54 | struct GNUNET_SERVER_Client *argclient, | ||
54 | const struct GNUNET_MessageHeader *message) | 55 | const struct GNUNET_MessageHeader *message) |
55 | { | 56 | { |
56 | switch (ok) | 57 | switch (ok) |
57 | { | 58 | { |
58 | case 2: | 59 | case 2: |
59 | ok++; | 60 | ok++; |
60 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply | 61 | (void) GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply |
61 | (GNUNET_TIME_UNIT_MILLISECONDS, 50), | 62 | (GNUNET_TIME_UNIT_MILLISECONDS, 50), |
62 | &send_done, argclient); | 63 | &send_done, |
64 | argclient); | ||
63 | break; | 65 | break; |
64 | case 4: | 66 | case 4: |
65 | ok++; | 67 | ok++; |
@@ -91,13 +93,14 @@ clean_up (void *cls) | |||
91 | * @param client identification of the client | 93 | * @param client identification of the client |
92 | */ | 94 | */ |
93 | static void | 95 | static void |
94 | notify_disconnect (void *cls, struct GNUNET_SERVER_Client *client) | 96 | notify_disconnect (void *cls, |
97 | struct GNUNET_SERVER_Client *client) | ||
95 | { | 98 | { |
96 | if (client == NULL) | 99 | if (client == NULL) |
97 | return; | 100 | return; |
98 | GNUNET_assert (ok == 5); | 101 | GNUNET_assert (ok == 5); |
99 | ok = 0; | 102 | ok = 0; |
100 | GNUNET_SCHEDULER_add_now (&clean_up, NULL); | 103 | (void) GNUNET_SCHEDULER_add_now (&clean_up, NULL); |
101 | } | 104 | } |
102 | 105 | ||
103 | 106 | ||