diff options
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; |