summaryrefslogtreecommitdiffstats
path: root/support/include/conffile.h
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-08-07 14:34:42 -0400
committerSteve Dickson <steved@redhat.com>2009-08-16 17:06:44 -0400
commit8414d150cee62ba0554cfd645956a88dba02a7eb (patch)
treefe57de29ea4a1c911aa7eb9cabff7adca37de0ae /support/include/conffile.h
parenta0caba9887474cdc9b9ba8b113a869ff7954ab84 (diff)
downloadnfs-utils-8414d150cee62ba0554cfd645956a88dba02a7eb.tar.gz
nfs-utils-8414d150cee62ba0554cfd645956a88dba02a7eb.tar.xz
nfs-utils-8414d150cee62ba0554cfd645956a88dba02a7eb.zip
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 <steved@redhat.com>
Diffstat (limited to 'support/include/conffile.h')
-rw-r--r--support/include/conffile.h10
1 files changed, 10 insertions, 0 deletions
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_ */