1 --- net-tools-1.60/nameif.c.nameif 2000-10-18 19:26:29.000000000 +0200
2 +++ net-tools-1.60/nameif.c 2003-03-19 11:02:01.000000000 +0100
4 * Writen 2000 by Andi Kleen.
5 * Subject to the Gnu Public License, version 2.
6 * TODO: make it support token ring etc.
16 - struct change *next,**pprev;
17 + struct change *next;
19 char ifname[IFNAMSIZ+1];
24 if (parsemac(p,ch->mac) < 0)
25 complain(_("cannot parse MAC `%s' at %s"), p, pos);
27 - clist->pprev = &ch->next;
37 - fprintf(stderr, _("usage: nameif [-c configurationfile] [-s] {ifname macaddress}"));
38 + fprintf(stderr, _("usage: nameif [-c configurationfile] [-s] {ifname macaddress}\n"));
47 - *ch->pprev = ch->next;
50 if (strcmp(p, ch->ifname)) {
51 if (setname(p, ch->ifname) < 0)
52 complain(_("cannot change name of %s to %s: %s"),
53 p, ch->ifname, strerror(errno));
60 struct change *ch = clist;
62 - warning(_("interface '%s' not found"), ch->ifname);
64 + warning(_("interface '%s' not found"), ch->ifname);