aboutsummaryrefslogtreecommitdiff
path: root/src/arm
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-11-03 21:38:45 +0000
committerChristian Grothoff <christian@grothoff.org>2010-11-03 21:38:45 +0000
commitd8abe51562c11473ebcb823ad67c529be2c9dc92 (patch)
tree95f6f53b8060d72c7c0b206c728ab03d73590292 /src/arm
parent721e49caeea6ba5073f8bc5c6c08359295c02bb5 (diff)
downloadgnunet-d8abe51562c11473ebcb823ad67c529be2c9dc92.tar.gz
gnunet-d8abe51562c11473ebcb823ad67c529be2c9dc92.zip
style improvments wrt Mantis 1614 patch
Diffstat (limited to 'src/arm')
-rw-r--r--src/arm/arm_api.c2
-rw-r--r--src/arm/do_start_process.c4
-rw-r--r--src/arm/gnunet-service-arm.c13
3 files changed, 8 insertions, 11 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c
index 81f1c2d5c..e404f8d27 100644
--- a/src/arm/arm_api.c
+++ b/src/arm/arm_api.c
@@ -375,7 +375,7 @@ arm_service_report (void *cls,
375 const struct GNUNET_SCHEDULER_TaskContext *tc) 375 const struct GNUNET_SCHEDULER_TaskContext *tc)
376{ 376{
377 struct RequestContext *pos = cls; 377 struct RequestContext *pos = cls;
378 GNUNET_OS_Process *proc; 378 struct GNUNET_OS_Process *proc;
379 char *binary; 379 char *binary;
380 char *config; 380 char *config;
381 char *loprefix; 381 char *loprefix;
diff --git a/src/arm/do_start_process.c b/src/arm/do_start_process.c
index 7d691ce60..139d0c429 100644
--- a/src/arm/do_start_process.c
+++ b/src/arm/do_start_process.c
@@ -12,7 +12,7 @@
12 * @param ... more arguments, NULL terminated 12 * @param ... more arguments, NULL terminated
13 * @return PID of the started process, -1 on error 13 * @return PID of the started process, -1 on error
14 */ 14 */
15static GNUNET_OS_Process * 15static struct GNUNET_OS_Process *
16do_start_process (const int *lsocks, 16do_start_process (const int *lsocks,
17 const char *first_arg, ...) 17 const char *first_arg, ...)
18{ 18{
@@ -24,7 +24,7 @@ do_start_process (const int *lsocks,
24 char *pos; 24 char *pos;
25 char *cp; 25 char *cp;
26 const char *last; 26 const char *last;
27 GNUNET_OS_Process *proc; 27 struct GNUNET_OS_Process *proc;
28 28
29 argv_size = 1; 29 argv_size = 1;
30 va_start (ap, first_arg); 30 va_start (ap, first_arg);
diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c
index 543e65557..ab4db97c7 100644
--- a/src/arm/gnunet-service-arm.c
+++ b/src/arm/gnunet-service-arm.c
@@ -93,7 +93,7 @@ struct ServiceList
93 /** 93 /**
94 * Process structure pointer of the child. 94 * Process structure pointer of the child.
95 */ 95 */
96 GNUNET_OS_Process *proc; 96 struct GNUNET_OS_Process *proc;
97 97
98 /** 98 /**
99 * Last time the config of this service was 99 * Last time the config of this service was
@@ -434,12 +434,10 @@ start_process (struct ServiceList *sl,
434 sl->name); 434 sl->name);
435 else 435 else
436 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 436 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
437 _("Starting service `%s' (PID: %d)\n"), 437 _("Starting service `%s'\n"),
438 sl->name, 438 sl->name);
439 (int) GNUNET_OS_process_get_pid (sl->proc));
440 GNUNET_free (loprefix); 439 GNUNET_free (loprefix);
441 GNUNET_free (options); 440 GNUNET_free (options);
442 /* FIXME: should check sl->proc */
443} 441}
444 442
445 443
@@ -735,9 +733,8 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
735 if (pos->proc != NULL) 733 if (pos->proc != NULL)
736 { 734 {
737 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 735 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
738 "Stopping service `%s' (PID: %d)\n", 736 "Stopping service `%s'\n",
739 pos->name, 737 pos->name);
740 GNUNET_OS_process_get_pid (pos->proc));
741 if (0 != GNUNET_OS_process_kill (pos->proc, SIGTERM)) 738 if (0 != GNUNET_OS_process_kill (pos->proc, SIGTERM))
742 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); 739 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
743 } 740 }