]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/include/conffile.h
Now that only the Section names are case-insensitive
[nfs-utils.git] / support / include / conffile.h
index b2635812aebe62530d0cab2074bc8773be245c8d..132a149069e5da08b211a8fd8d7c7cd2171abb67 100644 (file)
@@ -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_ */