DORMANTno replies

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

From: Kees van Reeuwijk <hidden>
Date: 2013-02-08 13:34:41
Subsystem: the rest · Maintainer: Linus Torvalds

From: Kees van Reeuwijk <redacted>

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

---


 ip.c             |    1 +
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)
 {
 	usage();
+        return 0;
 }
 
 static const struct cmd {
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help