From: Patrick Mansfield <patmans@us.ibm.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] move assignments past local variables
Date: Thu, 14 Oct 2004 21:23:08 +0000 [thread overview]
Message-ID: <20041014212308.GA12397@beaverton.ibm.com> (raw)
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
next reply other threads:[~2004-10-14 21:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 21:23 Patrick Mansfield [this message]
2004-10-15 17:21 ` [PATCH] move assignments past local variables Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041014212308.GA12397@beaverton.ibm.com \
--to=patmans@us.ibm.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).