aboutsummaryrefslogtreecommitdiff
path: root/src/arm
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-07-29 08:05:52 +0000
committerChristian Grothoff <christian@grothoff.org>2009-07-29 08:05:52 +0000
commitb80e650bad570e01b5600aab2a667d177fc17770 (patch)
treeae5b933796c34f8c0e56f54448da98c4174f683c /src/arm
parent673dda8cec9a607d77543abd697982fc1fe9e271 (diff)
downloadgnunet-b80e650bad570e01b5600aab2a667d177fc17770.tar.gz
gnunet-b80e650bad570e01b5600aab2a667d177fc17770.zip
travelhacking
Diffstat (limited to 'src/arm')
-rw-r--r--src/arm/arm.h2
-rw-r--r--src/arm/gnunet-service-arm.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/arm/arm.h b/src/arm/arm.h
index 2293ec036..a8f5d0706 100644
--- a/src/arm/arm.h
+++ b/src/arm/arm.h
@@ -27,6 +27,6 @@
27 27
28#include "gnunet_common.h" 28#include "gnunet_common.h"
29 29
30#define DEBUG_ARM GNUNET_NO 30#define DEBUG_ARM GNUNET_YES
31 31
32#endif 32#endif
diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c
index 32674117c..ac58904ed 100644
--- a/src/arm/gnunet-service-arm.c
+++ b/src/arm/gnunet-service-arm.c
@@ -167,6 +167,8 @@ signal_result (struct GNUNET_SERVER_Client *client,
167{ 167{
168 uint16_t *res; 168 uint16_t *res;
169 169
170 if (NULL == client)
171 return;
170#if DEBUG_ARM 172#if DEBUG_ARM
171 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 173 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
172 "Telling client that service `%s' is now %s\n", 174 "Telling client that service `%s' is now %s\n",
@@ -387,7 +389,8 @@ start_service (struct GNUNET_SERVER_Client *client, const char *servicename)
387 sl->mtime = sbuf.st_mtime; 389 sl->mtime = sbuf.st_mtime;
388 running = sl; 390 running = sl;
389 start_process (sl); 391 start_process (sl);
390 signal_result (client, servicename, GNUNET_MESSAGE_TYPE_ARM_IS_UP); 392 if (NULL != client)
393 signal_result (client, servicename, GNUNET_MESSAGE_TYPE_ARM_IS_UP);
391} 394}
392 395
393 396