From: Michele Petrazzo - Unipex <michele.petrazzo@unipex•it>
To: netdev@vger•kernel.org
Subject: Re: [patch] [iproute] ip exit, ip and tc line number
Date: Sat, 06 Mar 2010 19:56:53 +0100 [thread overview]
Message-ID: <4B92A575.1030801@unipex.it> (raw)
In-Reply-To: <20100303163028.21ef4194@nehalam>
[-- Attachment #1: Type: text/plain, Size: 133 bytes --]
Stephen Hemminger wrote:
> The force issue is a different problem so please split out that part
> and resubmit.
Attached.
Michele
[-- Attachment #2: iproute.diff --]
[-- Type: text/x-diff, Size: 900 bytes --]
commit b1875eb9564da302ba79c01746ec9cf391d0d593
Author: Michele Petrazzo <michele.petrazzo@unipex•it>
Date: Sat Mar 6 19:45:27 2010 +0100
Allow ip to process all the file passed with the -batch argument when
is passed also the -force switch
Signed-off-by: Michele Petrazzo <michele.petrazzo@unipex•it>
diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index e9256d9..8ec6cfd 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -1014,7 +1014,7 @@ static int ipaddr_modify(int cmd, int flags, int argc, char **argv)
}
if (l && matches(d, l) != 0) {
fprintf(stderr, "\"dev\" (%s) must match \"label\" (%s).\n", d, l);
- exit(1);
+ return -1;
}
if (peer_len == 0 && local_len) {
@@ -1079,7 +1079,7 @@ static int ipaddr_modify(int cmd, int flags, int argc, char **argv)
}
if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
- exit(2);
+ return -2;
return 0;
}
prev parent reply other threads:[~2010-03-06 18:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-02 18:28 [patch] [iproute] ip exit, ip and tc line number Michele Petrazzo - Unipex
2010-03-04 0:30 ` Stephen Hemminger
2010-03-06 18:56 ` Michele Petrazzo - Unipex [this message]
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=4B92A575.1030801@unipex.it \
--to=michele.petrazzo@unipex$(echo .)it \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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