* [PATCH] move assignments past local variables
@ 2004-10-14 21:23 Patrick Mansfield
2004-10-15 17:21 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Mansfield @ 2004-10-14 21:23 UTC (permalink / raw)
To: linux-hotplug
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 1.67 vs edited ==--- 1.67/udev.c Wed Oct 13 19:09:31 2004
+++ edited/udev.c Thu Oct 14 13:13:55 2004
@@ -106,8 +106,6 @@
int main(int argc, char *argv[], char *envp[])
{
- main_argv = argv;
- main_envp = envp;
struct sigaction act;
char *action;
char *devpath = "";
@@ -120,6 +118,9 @@
} act_type;
dbg("version %s", UDEV_VERSION);
+
+ main_argv = argv;
+ main_envp = envp;
init_logging("udev");
-- Patrick Mansfield
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-15 17:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-14 21:23 [PATCH] move assignments past local variables Patrick Mansfield
2004-10-15 17:21 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).