Patchwork [v2,1/5] iproute2: add a missing return statement

login
register
mail settings
Submitter Kees van Reeuwijk
Date Feb. 8, 2013, 1:32 p.m.
Message ID <E1U3o4C-0000bv-O3@babylon.few.vu.nl>
Download mbox | patch
Permalink /patch/219155/
State Accepted
Delegated to: stephen hemminger
Headers show

Comments

Kees van Reeuwijk - Feb. 8, 2013, 1:32 p.m.
From: Kees van Reeuwijk <reeuwijk@few.vu.nl>

Since do_help() has to return an int to fit in the table of commands,
it should actually return an int. This patch lets it do so.

Signed-off-by: Kees van Reeuwijk <reeuwijk@few.vu.nl>

---


 ip.c             |    1 +
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/ip/ip.c b/ip/ip.c
index 632d271..c3ff627 100644
--- a/ip/ip.c
+++ b/ip/ip.c
@@ -57,6 +57,7 @@  static void usage(void)
 static int do_help(int argc, char **argv)
 {
 	usage();
+        return 0;
 }
 
 static const struct cmd {