From 90c4deca11e9fa20e97ce30dd06aab2fdced10d0 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 19 Oct 2016 23:06:35 +0100 Subject: [PATCH] init: oops commit the right version --- Applications/util/init.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Applications/util/init.c b/Applications/util/init.c index 46cb0909..d9894888 100644 --- a/Applications/util/init.c +++ b/Applications/util/init.c @@ -136,8 +136,8 @@ static pid_t spawn_process(uint8_t * p, uint8_t wait) args[an] = NULL; /* Check for internal processes */ - if (strcmp(args[2], "getty") == 0) - if ((pid = getty(args + 3, p + 1) == -1) + if (strcmp(args[2], "getty") == 0) { + if ((pid = getty(args + 3, p + 1)) == -1) return 0; } else { /* External */ @@ -705,7 +705,6 @@ static pid_t getty(const char **argv, const char *id) const char *host = ""; char *p, buf[50], salt[3]; char hn[64]; - long baud = 9600; gethostname(hn, sizeof(hn)); -- 2.34.1