aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-05-21 13:22:20 +0000
committerChristian Grothoff <christian@grothoff.org>2013-05-21 13:22:20 +0000
commitc192aad3e7b492a2042164d8300f060476805afa (patch)
tree9a4294eb4d1f64a80534236869b495a72ca5ca84 /src
parentbe246455f12d1d2b2f12757ee6b81bbacfa4920f (diff)
downloadgnunet-c192aad3e7b492a2042164d8300f060476805afa.tar.gz
gnunet-c192aad3e7b492a2042164d8300f060476805afa.zip
-indentation
Diffstat (limited to 'src')
-rw-r--r--src/arm/gnunet-arm.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/arm/gnunet-arm.c b/src/arm/gnunet-arm.c
index 605633cc5..f81f2f171 100644
--- a/src/arm/gnunet-arm.c
+++ b/src/arm/gnunet-arm.c
@@ -312,15 +312,18 @@ term_callback (void *cls,
312 } 312 }
313} 313}
314 314
315
315static void 316static void
316end_callback (void *cls, 317end_callback (void *cls,
317 enum GNUNET_ARM_RequestStatus rs, const char *service, 318 enum GNUNET_ARM_RequestStatus rs, const char *service,
318 enum GNUNET_ARM_Result result) 319 enum GNUNET_ARM_Result result)
319{ 320{
320 if (GNUNET_ARM_REQUEST_SENT_OK != rs) 321 if (GNUNET_ARM_REQUEST_SENT_OK != rs)
321 { 322 {
322 char *msg; 323 char *msg;
323 GNUNET_asprintf (&msg, "%s", _("Failed to send a stop request to the ARM service: %s\n")); 324
325 GNUNET_asprintf (&msg, "%s",
326 _("Failed to send a stop request to the ARM service: %s\n"));
324 FPRINTF (stdout, msg, req_string (rs)); 327 FPRINTF (stdout, msg, req_string (rs));
325 GNUNET_free (msg); 328 GNUNET_free (msg);
326 GNUNET_SCHEDULER_shutdown (); 329 GNUNET_SCHEDULER_shutdown ();
@@ -342,6 +345,7 @@ end_callback (void *cls,
342 else 345 else
343 { 346 {
344 char *msg; 347 char *msg;
348
345 GNUNET_asprintf (&msg, "%s", _("Failed to stop the ARM service: %s\n")); 349 GNUNET_asprintf (&msg, "%s", _("Failed to stop the ARM service: %s\n"));
346 FPRINTF (stdout, msg, ret_string (result)); 350 FPRINTF (stdout, msg, ret_string (result));
347 GNUNET_free (msg); 351 GNUNET_free (msg);
@@ -349,10 +353,11 @@ end_callback (void *cls,
349 } 353 }
350} 354}
351 355
356
352static void 357static void
353start_callback (void *cls, 358start_callback (void *cls,
354 enum GNUNET_ARM_RequestStatus rs, const char *service, 359 enum GNUNET_ARM_RequestStatus rs, const char *service,
355 enum GNUNET_ARM_Result result) 360 enum GNUNET_ARM_Result result)
356{ 361{
357 char *msg; 362 char *msg;
358 363
@@ -375,18 +380,18 @@ start_callback (void *cls,
375 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "ARM service [re]start successful\n"); 380 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "ARM service [re]start successful\n");
376 start = 0; 381 start = 0;
377 GNUNET_SCHEDULER_add_now (action_loop, NULL); 382 GNUNET_SCHEDULER_add_now (action_loop, NULL);
378 return;
379} 383}
380 384
381 385
382static void 386static void
383init_callback (void *cls, 387init_callback (void *cls,
384 enum GNUNET_ARM_RequestStatus rs, const char *service, 388 enum GNUNET_ARM_RequestStatus rs, const char *service,
385 enum GNUNET_ARM_Result result) 389 enum GNUNET_ARM_Result result)
386{ 390{
387 if (GNUNET_ARM_REQUEST_SENT_OK != rs) 391 if (GNUNET_ARM_REQUEST_SENT_OK != rs)
388 { 392 {
389 char *msg; 393 char *msg;
394
390 GNUNET_asprintf (&msg, _("Failed to send a request to start the `%s' service: %%s\n"), init); 395 GNUNET_asprintf (&msg, _("Failed to send a request to start the `%s' service: %%s\n"), init);
391 FPRINTF (stdout, msg, req_string (rs)); 396 FPRINTF (stdout, msg, req_string (rs));
392 GNUNET_free (msg); 397 GNUNET_free (msg);