All of lore.kernel.org
 help / color / mirror / Atom feed
From: zkabelac@sourceware.org
To: dm-cvs@sourceware.org, dm-devel@redhat.com
Subject: dmraid/tools dmevent_tool.c
Date: 27 May 2010 20:56:36 -0000	[thread overview]
Message-ID: <20100527205636.13554.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/dm
Module name:	dmraid
Changes by:	zkabelac@sourceware.org	2010-05-27 20:56:36

Modified files:
	tools          : dmevent_tool.c 

Log message:
	Fix compiler warnings

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/tools/dmevent_tool.c.diff?cvsroot=dm&r1=1.1&r2=1.2

--- dmraid/tools/dmevent_tool.c	2009/12/16 11:39:18	1.1
+++ dmraid/tools/dmevent_tool.c	2010/05/27 20:56:36	1.2
@@ -123,7 +123,7 @@
 }
 
 /* Increment option counters. */
-static _process_opt(int opt, const char *cmd)
+static void _process_opt(int opt, const char *cmd)
 {
 	struct opt_def_struct {
 		const char opt;		/* Option character. */
@@ -214,7 +214,7 @@
 /* main: Process command line options + arguments. */
 int main(int argc, char **argv)
 {
-	int opt, ret = 0;
+	int ret = 0;
 	char *cmd = basename(argv[0]);
 	enum display_opt display_option;
 
@@ -225,11 +225,12 @@
 		display_option = ALL;
 		if (!optc[OPT_r] && optc[OPT_u])
 			display_option = UNREGISTERED;
-		else if (optc[OPT_r] && !optc[OPT_u])
+		else if (optc[OPT_r] && !optc[OPT_u]) {
 			if (optc[OPT_a])
 				display_option = REGISTERED_WITH_UUID;
 			else if (optc[OPT_m])
 				display_option = REGISTERED_NO_UUID;
+		}
 		dm_all_monitored(display_option);
 	}
 	else if (optc[OPT_r])

             reply	other threads:[~2010-05-27 20:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-27 20:56 zkabelac [this message]
2010-07-13 20:15 dmraid/tools dmevent_tool.c zkabelac

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=20100527205636.13554.qmail@sourceware.org \
    --to=zkabelac@sourceware.org \
    --cc=dm-cvs@sourceware.org \
    --cc=dm-devel@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.