From: patmans@us.ibm.com Date: Sat, 16 Oct 2004 01:18:54 +0000 (-0700) Subject: [PATCH] move assignments past local variables X-Git-Tag: 039~11 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92307b9e7bb08e1086d213617df3552e3ff53d75;p=systemd [PATCH] move assignments past local variables I'm using an older C compiler, and it doesn't like assignments mixed with declarations, but this is also a style cleanup. --- diff --git a/udev.c b/udev.c index d98a0173..b4b08b33 100644 --- a/udev.c +++ b/udev.c @@ -106,8 +106,6 @@ static int subsystem_without_dev(const char *subsystem) int main(int argc, char *argv[], char *envp[]) { - main_argv = argv; - main_envp = envp; struct sigaction act; char *action; char *devpath = ""; @@ -121,6 +119,9 @@ int main(int argc, char *argv[], char *envp[]) dbg("version %s", UDEV_VERSION); + main_argv = argv; + main_envp = envp; + init_logging("udev"); udev_init_config();