summaryrefslogtreecommitdiff
path: root/udev_utils.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-13 05:46:31 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:53:17 -0700
commit28ce66de1750320d7f09547d8910d42ae580fe5e (patch)
tree046e79a814f6deb9af27772897f4d6d092ba73f2 /udev_utils.c
parent3b6ed8bb06d18a2855d530dcb9034e9d37114827 (diff)
[PATCH] support =, ==, !=, += for the key match and assignment
Diffstat (limited to 'udev_utils.c')
-rw-r--r--udev_utils.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/udev_utils.c b/udev_utils.c
index b650096593..c6658e6933 100644
--- a/udev_utils.c
+++ b/udev_utils.c
@@ -177,41 +177,6 @@ int unlink_secure(const char *filename)
return retval;
}
-int parse_get_pair(char **orig_string, char **left, char **right)
-{
- char *temp;
- char *string = *orig_string;
-
- if (!string)
- return -ENODEV;
-
- /* eat any whitespace */
- while (isspace(*string) || *string == ',')
- ++string;
-
- /* split based on '=' */
- temp = strsep(&string, "=");
- *left = temp;
- if (!string)
- return -ENODEV;
-
- /* take the right side and strip off the '"' */
- while (isspace(string[0]))
- ++string;
- if (string[0] == '"')
- ++string;
- else
- return -ENODEV;
-
- temp = strsep(&string, "\"");
- if (!string || temp[0] == '\0')
- return -ENODEV;
- *right = temp;
- *orig_string = string;
-
- return 0;
-}
-
int file_map(const char *filename, char **buf, size_t *bufsize)
{
struct stat stats;