lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <36C368FA-A2DE-442D-9FF3-E6E904533535@cs.vu.nl>
Date:	Thu, 31 Jan 2013 16:03:20 +0000
From:	"Reeuwijk, C. van" <c.van.reeuwijk@...nl>
To:	"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: [PATCH] iproute2: add a missing return statement to do_help()

From: Kees van Reeuwijk <reeuwijk@....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@....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)
 {
 	usage();
+        return 0;
 }
 
 static const struct cmd {

-- 
Dr. ir. Kees van Reeuwijk, Vrije Universiteit Amsterdam




--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ