Date: Thu, 6 Jul 2006 14:04:24 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 100754 for review Message-ID: <200607061404.k66E4O3S087405@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100754 Change 100754 by piso@piso_newluxor on 2006/07/06 14:04:05 style(9): convert "res", err" to "error" Affected files ... .. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_mod.c#14 edit Differences ... ==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_mod.c#14 (text+ko) ==== @@ -201,58 +201,58 @@ int attach_handlers(struct proto_handler *_p) { - int i, res = -1; + int i, error = -1; LIBALIAS_WLOCK(); for (i=0; 1; i++) { if (*((int *)&_p[i]) == EOH) break; - res = _attach_handler(&_p[i]); - if (res != 0) break; + error = _attach_handler(&_p[i]); + if (error != 0) break; } LIBALIAS_WUNLOCK(); - return (res); + return (error); } int detach_handlers(struct proto_handler *_p) { - int i, res = -1; + int i, error = -1; LIBALIAS_WLOCK(); for (i=0; 1; i++) { if (*((int *)&_p[i]) == EOH) break; - res = _detach_handler(&_p[i]); - if (res != 0) break; + error = _detach_handler(&_p[i]); + if (error != 0) break; } LIBALIAS_WUNLOCK(); - return (res); + return (error); } int detach_handler(struct proto_handler *_p) { - int res = -1; + int error = -1; LIBALIAS_WLOCK(); - res = _detach_handler(_p); + error = _detach_handler(_p); LIBALIAS_WUNLOCK(); - return (res); + return (error); } int find_handler(int8_t dir, int8_t proto, struct libalias *la, struct ip *pip, struct alias_data *ad) { struct proto_handler *p; - int err = ENOENT; + int error = ENOENT; LIBALIAS_RLOCK(); LIST_FOREACH(p, &handler_chain, entries) { if ((p->dir & dir) && (p->proto & proto)) if (p->fingerprint(la, pip, ad) == 0) { - err = p->protohandler(la, pip, ad); + error = p->protohandler(la, pip, ad); break; } } LIBALIAS_RUNLOCK(); - return (err); + return (error); } struct proto_handler *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607061404.k66E4O3S087405>