diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-10 18:39:23 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-10 18:39:23 +0200 |
commit | ecc9ec579feb4b7cc86bcf7caed3cb841faf3c9e (patch) | |
tree | ec4a377b0fb8729c7620d773f5a10eb10dbcc421 /udev/udev_utils.c | |
parent | 75250977137c26f706fc1514aca7982107859b1c (diff) |
convert to libudev and delete udev_utils_string.c
Diffstat (limited to 'udev/udev_utils.c')
-rw-r--r-- | udev/udev_utils.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/udev/udev_utils.c b/udev/udev_utils.c index 2cbb4d98eb..669e4f3419 100644 --- a/udev/udev_utils.c +++ b/udev/udev_utils.c @@ -32,27 +32,6 @@ #include "udev.h" - -int log_priority(const char *priority) -{ - char *endptr; - int prio; - - prio = strtol(priority, &endptr, 10); - if (endptr[0] == '\0') - return prio; - if (strncasecmp(priority, "err", 3) == 0) - return LOG_ERR; - if (strcasecmp(priority, "info") == 0) - return LOG_INFO; - if (strcasecmp(priority, "debug") == 0) - return LOG_DEBUG; - if (string_is_true(priority)) - return LOG_ERR; - - return 0; -} - struct name_entry *name_list_add(struct udev *udev, struct list_head *name_list, const char *name, int sort) { struct name_entry *name_loop; |