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

mail settings
Submitter Kees van Reeuwijk
Date Feb. 8, 2013, 1:32 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/219155/
State Accepted
Delegated to: stephen hemminger
Headers show


Kees van Reeuwijk - Feb. 8, 2013, 1:32 p.m.
From: Kees van Reeuwijk <>

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 <>


 ip.c             |    1 +
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at


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 {