From e66b9314c918ffcc495cb30ab22abfc9ad71d7d5 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 16 Dec 2009 00:04:29 +0200 Subject: Bugfixes. * src/diag.c (vlogmsg): Copy va_list before printing it to stderr. * src/progman.c (print_status): First arg is const. --- src/progman.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/progman.c') diff --git a/src/progman.c b/src/progman.c index ffaf37b..9143b99 100644 --- a/src/progman.c +++ b/src/progman.c @@ -1708,7 +1708,7 @@ progman_stop () } static void -print_status (char *tag, pid_t pid, int status, int expect_term) +print_status (const char *tag, pid_t pid, int status, int expect_term) { if (WIFEXITED (status)) { @@ -2053,7 +2053,7 @@ run_command (struct action *act, struct prog *prog, unsigned retcode, /* Master */ debug (1, (_("started command: %s, pid=%lu"), act->command, (unsigned long) pid)); - register_command (_("[action]"), xstrdup (act->command), pid); + register_command ((char*) _("[action]"), xstrdup (act->command), pid); } static void @@ -2130,11 +2130,6 @@ progman_cleanup (int expect_term) if (!prog) { print_status (_("subprocess"), pid, status, expect_term); - /* - logmsg (LOG_NOTICE, - _("subprocess %lu finished"), - (unsigned long) pid); - */ continue; } prog->pid = 0; -- cgit v1.2.1