]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/include/conffile.h
libexport.a: Refactor client_init()
[nfs-utils.git] / support / include / conffile.h
index b2635812aebe62530d0cab2074bc8773be245c8d..ce7aa218a56527d9bcc1d77f275bab6a10c4e2fc 100644 (file)
@@ -34,6 +34,7 @@
 #define _CONFFILE_H_
 
 #include <sys/queue.h>
+#include <ctype.h>
 
 struct conf_list_node {
        TAILQ_ENTRY(conf_list_node) link;
@@ -64,4 +65,16 @@ 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_ */