iproute2: add a missing return statement to do_help()

Message ID 36C368FA-A2DE-442D-9FF3-E6E904533535@cs.vu.nl
State Changes Requested, archived
Delegated to: stephen hemminger
Headers show

Commit Message

Reeuwijk, C. van Jan. 31, 2013, 4:03 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>


 {upstream/master:ip => master:ip}/ip.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/upstream/master:ip/ip.c b/master:ip/ip.c
index 632d271..c3ff627 100644
--- a/upstream/master:ip/ip.c
+++ b/master: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 {