diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-11-12 06:20:22 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 22:24:38 -0700 |
commit | af4b05d4917fdfa55eff3d8d53a830464d8162a1 (patch) | |
tree | 352f8b4180c9be6f848c7f69517783b7912c42d3 /udevtest.c | |
parent | 13f24d596c5638443ffc7bc48c10a66758335c74 (diff) |
[PATCH] make the udev object available to more processing stages
Remove the overwriting of main_argv[] hack and use the values
from the udev object.
Pass the udev object to call_foreach_file().
In the udevstart case, export SUBSYSTEM and UDEVSTART to the
environment.
Diffstat (limited to 'udevtest.c')
-rw-r--r-- | udevtest.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/udevtest.c b/udevtest.c index e67af0df67..14c511584b 100644 --- a/udevtest.c +++ b/udevtest.c @@ -34,10 +34,6 @@ #include "logging.h" #include "namedev.h" -/* global variables */ -char **main_argv; -char **main_envp; - #ifdef LOG unsigned char logname[LOGNAME_SIZE]; @@ -62,9 +58,6 @@ int main(int argc, char *argv[], char *envp[]) char *subsystem = ""; struct udevice udev; - main_argv = argv; - main_envp = envp; - info("version %s", UDEV_VERSION); if (argv[1] == NULL) { |