From: Alan Cox Date: Wed, 27 May 2015 21:55:57 +0000 (+0100) Subject: init: typedef fix gcc caught X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2b85364708288d86c0f92d95d694490fa462543a;p=FUZIX.git init: typedef fix gcc caught Still some const confusions to fix up but they are warnings --- diff --git a/Applications/util/init.c b/Applications/util/init.c index 677f7ded..3acfc11f 100644 --- a/Applications/util/init.c +++ b/Applications/util/init.c @@ -206,7 +206,7 @@ static uint8_t to_runlevel(uint8_t c) { if (c == 's' || c == 'S') return 7; /* 1 << 7 is used for boot/single */ - if (c >= '0 ' && c <= '6') + if (c >= '0' && c <= '6') return c - '0'; return -1; } @@ -518,7 +518,7 @@ static void envset(char *a, char *b) /* * Internal implementation of "getty" and "login" */ -static pid_t getty(char *ttyname, char *id) +static pid_t getty(const char *ttyname, const char *id) { int fdtty, pid; struct passwd *pwd;