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

Message ID E1U3o4C-0000bv-O3@babylon.few.vu.nl
State Accepted, archived
Delegated to: stephen hemminger
Headers show

Commit Message

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


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)
+        return 0;
 static const struct cmd {