]> err.no Git - systemd/commitdiff
[PATCH] udev 012 old gcc fixup
authortiggi@infa.abo.fi <tiggi@infa.abo.fi>
Sat, 10 Jan 2004 08:59:55 +0000 (00:59 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:14 +0000 (21:13 -0700)
Hello,
without this patch:
wolf@duel:/tmp/ud/udev-012>gcc -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)
cannot compile udev.

udev.c

diff --git a/udev.c b/udev.c
index 116acf538976a070aadaff0ed30187e9dd506747..30921420a0fe9514dab8cce4a0bc3a2e76ffd774 100644 (file)
--- a/udev.c
+++ b/udev.c
@@ -229,9 +229,9 @@ exit:
 
 int main(int argc, char **argv, char **envp)
 {
+       int retval;
        main_argv = argv;
        main_envp = envp;
-       int retval;
 
        dbg("version %s", UDEV_VERSION);