diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-05 21:03:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-05 21:03:00 +0000 |
commit | ce3358e934f60fd2637e98b08d58ced6e7f76ec7 (patch) | |
tree | 6fafa275f28d69e3433c44de75eb859efe9e3e9b /src/arm | |
parent | 83d2ed0a8630e0295c3bd9db54e15074c68ff783 (diff) | |
download | gnunet-ce3358e934f60fd2637e98b08d58ced6e7f76ec7.tar.gz gnunet-ce3358e934f60fd2637e98b08d58ced6e7f76ec7.zip |
-indentations, comments on API
Diffstat (limited to 'src/arm')
-rw-r--r-- | src/arm/gnunet-service-arm.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c index b30e8542e..704b6f2fc 100644 --- a/src/arm/gnunet-service-arm.c +++ b/src/arm/gnunet-service-arm.c | |||
@@ -488,7 +488,7 @@ start_process (struct ServiceList *sl, | |||
488 | GNUNET_asprintf ("edbinary, | 488 | GNUNET_asprintf ("edbinary, |
489 | "\"%s\"", | 489 | "\"%s\"", |
490 | binary); | 490 | binary); |
491 | 491 | ||
492 | GNUNET_assert (NULL == sl->proc); | 492 | GNUNET_assert (NULL == sl->proc); |
493 | if (GNUNET_YES == use_debug) | 493 | if (GNUNET_YES == use_debug) |
494 | { | 494 | { |
@@ -747,7 +747,7 @@ handle_start (void *cls, struct GNUNET_SERVER_Client *client, | |||
747 | } | 747 | } |
748 | if (GNUNET_YES == in_shutdown) | 748 | if (GNUNET_YES == in_shutdown) |
749 | { | 749 | { |
750 | signal_result (client, servicename, request_id, | 750 | signal_result (client, servicename, request_id, |
751 | GNUNET_ARM_RESULT_IN_SHUTDOWN); | 751 | GNUNET_ARM_RESULT_IN_SHUTDOWN); |
752 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | 752 | GNUNET_SERVER_receive_done (client, GNUNET_OK); |
753 | return; | 753 | return; |
@@ -755,7 +755,7 @@ handle_start (void *cls, struct GNUNET_SERVER_Client *client, | |||
755 | sl = find_service (servicename); | 755 | sl = find_service (servicename); |
756 | if (NULL == sl) | 756 | if (NULL == sl) |
757 | { | 757 | { |
758 | signal_result (client, servicename, request_id, | 758 | signal_result (client, servicename, request_id, |
759 | GNUNET_ARM_RESULT_IS_NOT_KNOWN); | 759 | GNUNET_ARM_RESULT_IS_NOT_KNOWN); |
760 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | 760 | GNUNET_SERVER_receive_done (client, GNUNET_OK); |
761 | return; | 761 | return; |
@@ -818,7 +818,7 @@ handle_stop (void *cls, struct GNUNET_SERVER_Client *client, | |||
818 | return; | 818 | return; |
819 | } | 819 | } |
820 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 820 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
821 | _("Preparing to stop `%s'\n"), | 821 | _("Preparing to stop `%s'\n"), |
822 | servicename); | 822 | servicename); |
823 | if (0 == strcasecmp (servicename, "arm")) | 823 | if (0 == strcasecmp (servicename, "arm")) |
824 | { | 824 | { |
@@ -1299,22 +1299,28 @@ setup_service (void *cls, const char *section) | |||
1299 | return; | 1299 | return; |
1300 | if (GNUNET_OK != | 1300 | if (GNUNET_OK != |
1301 | GNUNET_CONFIGURATION_get_value_string (cfg, section, "BINARY", &binary)) | 1301 | GNUNET_CONFIGURATION_get_value_string (cfg, section, "BINARY", &binary)) |
1302 | { | 1302 | { |
1303 | /* not a service section */ | 1303 | /* not a service section */ |
1304 | return; | 1304 | return; |
1305 | } | 1305 | } |
1306 | if ((GNUNET_YES == | 1306 | if ((GNUNET_YES == |
1307 | GNUNET_CONFIGURATION_have_value (cfg, section, "USER_SERVICE")) && | 1307 | GNUNET_CONFIGURATION_have_value (cfg, section, "USER_SERVICE")) && |
1308 | (GNUNET_YES == | 1308 | (GNUNET_YES == |
1309 | GNUNET_CONFIGURATION_get_value_yesno (cfg, section, "USER_SERVICE"))) | 1309 | GNUNET_CONFIGURATION_get_value_yesno (cfg, section, "USER_SERVICE"))) |
1310 | { | 1310 | { |
1311 | if (GNUNET_NO == start_user) | 1311 | if (GNUNET_NO == start_user) |
1312 | { | ||
1313 | GNUNET_free (binary); | ||
1312 | return; /* user service, and we don't deal with those */ | 1314 | return; /* user service, and we don't deal with those */ |
1315 | } | ||
1313 | } | 1316 | } |
1314 | else | 1317 | else |
1315 | { | 1318 | { |
1316 | if (GNUNET_NO == start_system) | 1319 | if (GNUNET_NO == start_system) |
1320 | { | ||
1321 | GNUNET_free (binary); | ||
1317 | return; /* system service, and we don't deal with those */ | 1322 | return; /* system service, and we don't deal with those */ |
1323 | } | ||
1318 | } | 1324 | } |
1319 | sl = find_service (section); | 1325 | sl = find_service (section); |
1320 | if (NULL != sl) | 1326 | if (NULL != sl) |