From 7b15897b464e246c7342b9bf2098fd5d91b64cca Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Fri, 23 Jan 2004 01:51:06 -0800 Subject: [PATCH] [PATCH] whitespace cleanups --- udevsend.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/udevsend.c b/udevsend.c index 37afaf55..1a897451 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; } -- 2.39.5