From ea224be6aa8fed5486376d3021a4cb911e935106 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 18 Jun 2006 20:20:07 +0000 Subject: skip_whitespace() shouldn't claim its return value is const, it doesn't know that and callers wind up typecasting it back. --- applets/applets.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'applets') diff --git a/applets/applets.c b/applets/applets.c index aea116add..27becfd68 100644 --- a/applets/applets.c +++ b/applets/applets.c @@ -14,8 +14,6 @@ #include "busybox.h" #include -#include -#include #include #include @@ -43,7 +41,6 @@ const size_t NUM_APPLETS = (sizeof (applets) / sizeof (struct BB_applet) - 1); #ifdef CONFIG_FEATURE_SUID_CONFIG -#include #include #include "pwd_.h" #include "grp_.h" @@ -99,7 +96,7 @@ static char *get_trimmed_slice(char *s, char *e) /* Next, advance past all leading space and return a ptr to the * first non-space char; possibly the terminating nul. */ - return (char *) bb_skip_whitespace(s); + return skip_whitespace(s); } @@ -240,7 +237,7 @@ static void parse_config_file(void) /* Get the specified mode. */ - e = (char *) bb_skip_whitespace(e+1); + e = skip_whitespace(e+1); for (i=0 ; i < 3 ; i++) { const char *q; @@ -253,7 +250,7 @@ static void parse_config_file(void) /* Now get the the user/group info. */ - s = (char *) bb_skip_whitespace(e); + s = skip_whitespace(e); /* Note: We require whitespace between the mode and the * user/group info. */ -- cgit v1.2.3