summaryrefslogtreecommitdiff
path: root/udev/udev-builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev/udev-builtin.c')
-rw-r--r--udev/udev-builtin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/udev/udev-builtin.c b/udev/udev-builtin.c
index f17b04f67e..6dfd006710 100644
--- a/udev/udev-builtin.c
+++ b/udev/udev-builtin.c
@@ -94,12 +94,13 @@ int udev_builtin_run(struct udev_device *dev, enum udev_builtin_cmd cmd, const c
int argc;
char *argv[128];
+ optind = 0;
util_strscpy(arg, sizeof(arg), command);
udev_build_argv(udev_device_get_udev(dev), arg, &argc, argv);
return builtins[cmd]->cmd(dev, argc, argv, test);
}
-int udev_builtin_add_property(struct udev_device *dev, bool test, const char *key, const char *val, ...)
+int udev_builtin_add_property(struct udev_device *dev, bool test, const char *key, const char *val)
{
struct udev_list_entry *entry;