chiark / gitweb /
require key names in uppercase
[elogind.git] / udev / lib / libudev-util.c
index 24ea0daa51569342e42af016c2672683b303f824..dcc4a0fd16e78e9270a352f13da947c4d60d0e90 100644 (file)
@@ -89,11 +89,11 @@ int util_log_priority(const char *priority)
        prio = strtol(priority, &endptr, 10);
        if (endptr[0] == '\0')
                return prio;
-       if (strncasecmp(priority, "err", 3) == 0)
+       if (strncmp(priority, "err", 3) == 0)
                return LOG_ERR;
-       if (strcasecmp(priority, "info") == 0)
+       if (strcmp(priority, "info") == 0)
                return LOG_INFO;
-       if (strcasecmp(priority, "debug") == 0)
+       if (strcmp(priority, "debug") == 0)
                return LOG_DEBUG;
        return 0;
 }