From 8414d150cee62ba0554cfd645956a88dba02a7eb Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Fri, 7 Aug 2009 14:34:42 -0400 Subject: Now that only the Section names are case-insensitive the mount code has to make sure the the mount options given to the kernel are in the correct case. Fixed a couple of warnings on #ifndefs Signed-off-by: Steve Dickson --- support/include/conffile.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'support/include/conffile.h') diff --git a/support/include/conffile.h b/support/include/conffile.h index b263581..132a149 100644 --- a/support/include/conffile.h +++ b/support/include/conffile.h @@ -64,4 +64,14 @@ extern int conf_remove(int, char *, char *); extern int conf_remove_section(int, char *); extern void conf_report(void); +/* + * Convert letter from upper case to lower case + */ +static inline void upper2lower(char *str) +{ + char c; + + while ((c = tolower(*str))) + *str++ = c; +} #endif /* _CONFFILE_H_ */ -- cgit