public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
337be78
)
init: typedef fix gcc caught
author
Alan Cox
<alan@linux.intel.com>
Wed, 27 May 2015 21:55:57 +0000
(22:55 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Wed, 27 May 2015 21:55:57 +0000
(22:55 +0100)
Still some const confusions to fix up but they are warnings
Applications/util/init.c
patch
|
blob
|
history
diff --git
a/Applications/util/init.c
b/Applications/util/init.c
index
677f7de
..
3acfc11
100644
(file)
--- 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(c
har *ttyname,
char *id)
+static pid_t getty(c
onst char *ttyname, const
char *id)
{
int fdtty, pid;
struct passwd *pwd;