From 2b85364708288d86c0f92d95d694490fa462543a Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 27 May 2015 22:55:57 +0100 Subject: [PATCH] init: typedef fix gcc caught Still some const confusions to fix up but they are warnings --- Applications/util/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.34.1