diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-05-20 23:45:32 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-05-20 23:45:32 +0200 |
commit | bd75fddbcbc65799bd4a684b3b6f4f04bcd637d8 (patch) | |
tree | a66361d3f011b37296cd257060cf2811a09cb0a9 /udev/lib/libudev.c | |
parent | fb045134706a50f12361e37f936a87d62e757db3 (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/libudev.c')
-rw-r--r-- | udev/lib/libudev.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, '/'); |