2 --- nameif.c 18 Oct 2000 17:26:29 -0000 1.1
3 +++ nameif.c 6 Mar 2003 23:26:52 -0000 1.3
8 - struct change *next,**pprev;
11 char ifname[IFNAMSIZ+1];
16 if (parsemac(p,ch->mac) < 0)
17 complain(_("cannot parse MAC `%s' at %s"), p, pos);
19 - clist->pprev = &ch->next;
29 - fprintf(stderr, _("usage: nameif [-c configurationfile] [-s] {ifname macaddress}"));
30 + fprintf(stderr, _("usage: nameif [-c configurationfile] [-s] {ifname macaddress}\n"));
39 - *ch->pprev = ch->next;
42 if (strcmp(p, ch->ifname)) {
43 if (setname(p, ch->ifname) < 0)
44 complain(_("cannot change name of %s to %s: %s"),
45 p, ch->ifname, strerror(errno));
52 struct change *ch = clist;
54 - warning(_("interface '%s' not found"), ch->ifname);
56 + warning(_("interface '%s' not found"), ch->ifname);