summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/udev.c b/udev.c
index 6e7ac25175..0aba8c4bf9 100644
--- a/udev.c
+++ b/udev.c
@@ -52,13 +52,19 @@ static char *get_device(void)
return device;
}
-int main(int argc, char *argv[])
+char **main_argv;
+char **main_envp;
+
+int main(int argc, char **argv, char **envp)
{
char *action;
char *device;
char *subsystem;
int retval = -EINVAL;
+ main_argv = argv;
+ main_envp = envp;
+
if (argc != 2) {
dbg ("unknown number of arguments");
goto exit;