help in locating them resulting in make the config
files a bit less error prone
Signed-off-by: Steve Dickson <steved@redhat.com>
return hash;
}
+/*
+ * Convert letter from upper case to lower case
+ */
+static inline void upper2lower(char *str)
+{
+ char *ptr = str;
+
+ while (*ptr)
+ *ptr++ = tolower(*ptr);
+}
+
+
/*
* Insert a tag-value combination from LINE (the equal sign is at POS)
*/
xlog_warn("conf_set: strdup(\"%s\") failed", section);
goto fail;
}
+ /* Make Section names case-insensitive */
+ upper2lower(node->section);
+
node->tag = strdup(tag);
if (!node->tag) {
xlog_warn("conf_set: strdup(\"%s\") failed", tag);