Skip to contentSkip to conversation

move assignments past local variables

PATCH Applied Patrick Mansfield 2 participants 2 messages Oct 14, 2004 – Oct 15, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

=== 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

Applied
#1 lore raw
Quoted 2 lines · Patrick Mansfield

I'm using an older C compiler, and it doesn't like assignments mixed with declarations, but this is also a style cleanup.

Applied, thanks.

greg k-h

-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel