From bd75fddbcbc65799bd4a684b3b6f4f04bcd637d8 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 20 May 2009 23:45:32 +0200 Subject: require key names in uppercase Drop pretty expensive case-insensitive matching, and key names in mixed or lowercase are not supported anyway. --- udev/lib/libudev-util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'udev/lib/libudev-util.c') diff --git a/udev/lib/libudev-util.c b/udev/lib/libudev-util.c index 24ea0daa51..dcc4a0fd16 100644 --- a/udev/lib/libudev-util.c +++ b/udev/lib/libudev-util.c @@ -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; } -- cgit v1.2.3-54-g00ecf