* Andres Perera <andre...@zoho.com> [2014-10-23 17:14]: > [What I'm pointing out below looks like a mistake regardless of the > variables in scope.]
> > void > > +addaf(const char *vname, int value) > > +{ > > ^ *v*name > > > + struct if_afreq ifar; > > + > > + strlcpy(ifar.ifar_name, name, sizeof(ifar.ifar_name)); > > ^ name you're absolutely right; it works correctly nontheless because of the global "name" var that happens to carry the ifname, too... oh ifconfig. fixed, thx. -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services GmbH, http://bsws.de, Full-Service ISP Secure Hosting, Mail and DNS. Virtual & Dedicated Servers, Root to Fully Managed Henning Brauer Consulting, http://henningbrauer.com/