/[packages]/cauldron/net-tools/current/SOURCES/net-tools-1.60-return.patch
ViewVC logotype

Contents of /cauldron/net-tools/current/SOURCES/net-tools-1.60-return.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 318 - (show annotations) (download)
Fri Jan 7 23:30:25 2011 UTC (13 years, 3 months ago) by tmb
File size: 565 byte(s)
imported package net-tools
1 --- net-tools-1.60/nameif.c.return 2004-08-03 18:01:37.000000000 +0900
2 +++ net-tools-1.60/nameif.c 2004-08-03 18:03:37.000000000 +0900
3 @@ -27,6 +27,7 @@
4 const char *fname = default_conf;
5 int use_syslog;
6 int ctl_sk = -1;
7 +int frag = 0;
8
9 void err(char *msg)
10 {
11 @@ -288,13 +289,15 @@
12 while (clist) {
13 struct change *ch = clist;
14 clist = clist->next;
15 - if (!ch->found)
16 + if (!ch->found){
17 warning(_("interface '%s' not found"), ch->ifname);
18 + frag = 1;
19 + }
20 free(ch);
21 }
22
23 if (use_syslog)
24 closelog();
25 - return 0;
26 + return frag;
27 }
28

  ViewVC Help
Powered by ViewVC 1.1.30