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 /udev.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 'udev.c')
-rw-r--r-- | udev.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -39,10 +39,6 @@ #include "udevdb.h" -/* global variables */ -char **main_argv; -char **main_envp; - #ifdef LOG unsigned char logname[LOGNAME_SIZE]; void log_message(int level, const char *format, ...) @@ -83,12 +79,7 @@ int main(int argc, char *argv[], char *envp[]) } act_type; dbg("version %s", UDEV_VERSION); - - main_argv = argv; - main_envp = envp; - logging_init("udev"); - udev_init_config(); if (strstr(argv[0], "udevstart") || (argv[1] != NULL && strstr(argv[1], "udevstart"))) { |