From: Kees van Reeuwijk <kees.van.reeuwijk@gmail.com>
To: netdev@vger.kernel.org
Subject: [PATCH v2 1/5] iproute2: add a missing return statement
Date: Fri, 08 Feb 2013 14:32:36 +0100 [thread overview]
Message-ID: <E1U3o4C-0000bv-O3@babylon.few.vu.nl> (raw)
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>
---
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 {
reply other threads:[~2013-02-08 13:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1U3o4C-0000bv-O3@babylon.few.vu.nl \
--to=kees.van.reeuwijk@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox