aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_service.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-18 08:15:49 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-18 08:15:49 +0000
commitfa0c67e5e82b69dead26d761980446ea5b29e65d (patch)
treebddd4eea647a179f7878b5233bf43fe54fdc3990 /src/util/test_service.c
parentfb44fdf83d0800e2e3e5300c3fe459bc01ec3d70 (diff)
downloadgnunet-fa0c67e5e82b69dead26d761980446ea5b29e65d.tar.gz
gnunet-fa0c67e5e82b69dead26d761980446ea5b29e65d.zip
better error handling
Diffstat (limited to 'src/util/test_service.c')
-rw-r--r--src/util/test_service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/test_service.c b/src/util/test_service.c
index 4d1608191..edfe33771 100644
--- a/src/util/test_service.c
+++ b/src/util/test_service.c
@@ -75,6 +75,7 @@ ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
75 &build_msg, client); 75 &build_msg, client);
76} 76}
77 77
78
78static void 79static void
79do_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 80do_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
80{ 81{
@@ -95,14 +96,13 @@ recv_cb (void *cls, struct GNUNET_SERVER_Client *client,
95 ok = 0; 96 ok = 0;
96} 97}
97 98
99
98static struct GNUNET_SERVER_MessageHandler myhandlers[] = { 100static struct GNUNET_SERVER_MessageHandler myhandlers[] = {
99 {&recv_cb, NULL, MY_TYPE, sizeof (struct GNUNET_MessageHeader)}, 101 {&recv_cb, NULL, MY_TYPE, sizeof (struct GNUNET_MessageHeader)},
100 {NULL, NULL, 0, 0} 102 {NULL, NULL, 0, 0}
101}; 103};
102 104
103 105
104
105
106static void 106static void
107runner (void *cls, struct GNUNET_SERVER_Handle *server, 107runner (void *cls, struct GNUNET_SERVER_Handle *server,
108 const struct GNUNET_CONFIGURATION_Handle *cfg) 108 const struct GNUNET_CONFIGURATION_Handle *cfg)