summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
authorpatmans@us.ibm.com <patmans@us.ibm.com>2003-10-14 23:32:17 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:01:40 -0700
commitc27e69116d3ef0ea069a3c5146009ced08a0238b (patch)
treeb90831fad9f7a0238e60e70ae66409bc5ca79fc4 /udev.c
parentdbfc520c605dee3244dbbfd563e908901324689b (diff)
[PATCH] add callout config type to udev
This patch adds a callout config type to udev, so external programs can be called to get serial numbers or id's that are not available as a sysfs attribute.
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;