summaryrefslogtreecommitdiff
path: root/udev/lib
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-05-20 23:45:32 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-05-20 23:45:32 +0200
commitbd75fddbcbc65799bd4a684b3b6f4f04bcd637d8 (patch)
treea66361d3f011b37296cd257060cf2811a09cb0a9 /udev/lib
parentfb045134706a50f12361e37f936a87d62e757db3 (diff)
require key names in uppercase
Drop pretty expensive case-insensitive matching, and key names in mixed or lowercase are not supported anyway.
Diffstat (limited to 'udev/lib')
-rw-r--r--udev/lib/libudev-util.c6
-rw-r--r--udev/lib/libudev.c6
2 files changed, 6 insertions, 6 deletions
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;
}
diff --git a/udev/lib/libudev.c b/udev/lib/libudev.c
index 2177e5459c..a9baa70799 100644
--- a/udev/lib/libudev.c
+++ b/udev/lib/libudev.c
@@ -188,17 +188,17 @@ struct udev *udev_new(void)
val++;
}
- if (strcasecmp(key, "udev_log") == 0) {
+ if (strcmp(key, "udev_log") == 0) {
udev_set_log_priority(udev, util_log_priority(val));
continue;
}
- if (strcasecmp(key, "udev_root") == 0) {
+ if (strcmp(key, "udev_root") == 0) {
free(udev->dev_path);
udev->dev_path = strdup(val);
util_remove_trailing_chars(udev->dev_path, '/');
continue;
}
- if (strcasecmp(key, "udev_rules") == 0) {
+ if (strcmp(key, "udev_rules") == 0) {
free(udev->rules_path);
udev->rules_path = strdup(val);
util_remove_trailing_chars(udev->rules_path, '/');