]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iproute2: add a missing return statement
authorKees van Reeuwijk <reeuwijk@few.vu.nl>
Fri, 8 Feb 2013 03:32:36 +0000 (03:32 +0000)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 11 Feb 2013 17:22:17 +0000 (09:22 -0800)
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/ip.c

diff --git a/ip/ip.c b/ip/ip.c
index 632d2717b096f66409f4e7fe6f5cf195e16de842..c3ff6270417004e318a3d739e2c484522a328706 100644 (file)
--- 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 {