From b7e8114067d3405692a428dc732ca4dc25163c72 Mon Sep 17 00:00:00 2001
From: andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Date: Thu, 22 Feb 2001 04:55:33 +0000
Subject: Make init compile when DEBUG_INIT is enabled  -Erik

git-svn-id: svn://busybox.net/trunk/busybox@1880 69ca8d6d-28ef-0310-b511-8ec308f3f277
---
 init/init.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'init')

diff --git a/init/init.c b/init/init.c
index 55a81d309..2657ec628 100644
--- a/init/init.c
+++ b/init/init.c
@@ -459,9 +459,8 @@ static pid_t run(char *command, char *terminal, int get_enter)
 			 * specifies.
 			 */
 #ifdef DEBUG_INIT
-			pid_t shell_pgid = getpid();
 			message(LOG, "Waiting for enter to start '%s' (pid %d, console %s)\r\n",
-					command, shell_pgid, terminal);
+					command, getpid(), terminal);
 #endif
 			write(fileno(stdout), press_enter, sizeof(press_enter) - 1);
 			getc(stdin);
@@ -470,7 +469,7 @@ static pid_t run(char *command, char *terminal, int get_enter)
 #ifdef DEBUG_INIT
 		/* Log the process name and args */
 		message(LOG, "Starting pid %d, console %s: '%s'\r\n",
-				shell_pgid, terminal, command);
+				getpid(), terminal, command);
 #endif
 
 		/* See if any special /bin/sh requiring characters are present */
-- 
cgit v1.2.3-55-g6feb