Patchwork iproute2: add a missing return statement to do_help()

login
register
mail settings
Submitter Reeuwijk, C. van
Date Jan. 31, 2013, 4:03 p.m.
Message ID <36C368FA-A2DE-442D-9FF3-E6E904533535@cs.vu.nl>
Download mbox | patch
Permalink /patch/217207/
State Changes Requested
Delegated to: stephen hemminger
Headers show

Comments

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

Patch

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