chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31a6e02
)
[PATCH] move assignments past local variables
author
patmans@us.ibm.com
<patmans@us.ibm.com>
Sat, 16 Oct 2004 01:18:54 +0000
(18:18 -0700)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 05:02:44 +0000
(22:02 -0700)
I'm using an older C compiler, and it doesn't like assignments mixed with
declarations, but this is also a style cleanup.
udev.c
patch
|
blob
|
history
diff --git
a/udev.c
b/udev.c
index d98a017396e0b33fa896d9336fcaf7ed289de011..b4b08b335b8810d103509834eb0bfa32013e2391 100644
(file)
--- 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();