summaryrefslogtreecommitdiff
path: root/udevsend.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-01-23 01:51:06 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:17 -0700
commit7b15897b464e246c7342b9bf2098fd5d91b64cca (patch)
treed9648e74ca6f1104d68d6937234d5a7433687e5c /udevsend.c
parent7fafc0324272731c5666047715b9f58f56761534 (diff)
[PATCH] whitespace cleanups
Diffstat (limited to 'udevsend.c')
-rw-r--r--udevsend.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/udevsend.c b/udevsend.c
index 37afaf55fa..1a897451c0 100644
--- a/udevsend.c
+++ b/udevsend.c
@@ -115,13 +115,12 @@ int main(int argc, char* argv[])
dbg("no seqnum");
goto exit;
}
-
seq = atoi(seqnum);
+
key = ftok(DEFAULT_EXEC_PROGRAM, IPC_KEY_ID);
size = build_hotplugmsg( (struct hotplug_msg**) &pmsg, action, devpath, subsystem, seq);
msgid = msgget(key, IPC_CREAT);
- if (msgid == -1)
- {
+ if (msgid == -1) {
dbg("open ipc queue error");
goto exit;
}
@@ -137,8 +136,7 @@ int main(int argc, char* argv[])
retval = msgsnd(msgid, pmsg, size, 0);
free_hotplugmsg( (struct hotplug_msg*) pmsg);
- if (retval == -1)
- {
+ if (retval == -1) {
dbg("send ipc message error");
goto exit;
}