diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2001-01-03 19:18:25 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2001-01-03 19:18:25 +0000 |
commit | d3d7f3c581e78e4cbcf44085df945684e6b7a4ad (patch) | |
tree | ec61c43c9e62101e2f97a4b88f02496927da0be8 | |
parent | c15084d26c88f75a9648559a44da6cf45325fc22 (diff) |
2001-01-03 Marcus Brinkmann <marcus@gnu.org>
* options.c (parse_opt): Set err to 0 if it was ESRCH.
(or zero after anyway).
-rw-r--r-- | pfinet/ChangeLog | 5 | ||||
-rw-r--r-- | pfinet/options.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/pfinet/ChangeLog b/pfinet/ChangeLog index a26dfefb..a53877d9 100644 --- a/pfinet/ChangeLog +++ b/pfinet/ChangeLog @@ -1,3 +1,8 @@ +2001-01-03 Marcus Brinkmann <marcus@gnu.org> + + * options.c (parse_opt): Set err to 0 if it was ESRCH. + (or zero after anyway). + 2000-12-03 Marcus Brinkmann <marcus@gnu.org> * main.c (pfinet_demuxer): New variable PI. diff --git a/pfinet/options.c b/pfinet/options.c index 12a7a4c1..3de98c35 100644 --- a/pfinet/options.c +++ b/pfinet/options.c @@ -287,6 +287,7 @@ parse_opt (int opt, char *arg, struct argp_state *state) err = - (*tb->tb_delete) (tb, &req.rtm, &rta, &req.nlh, 0); if (err && err != ESRCH) FAIL (err, 17, 0, "cannot remove old default gateway"); + err = 0; } } else |