From owner-p4-projects@FreeBSD.ORG Thu Jul 6 14:04:25 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 23BC816A4E1; Thu, 6 Jul 2006 14:04:25 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D88EF16A4DE for ; Thu, 6 Jul 2006 14:04:24 +0000 (UTC) (envelope-from piso@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EB7743D45 for ; Thu, 6 Jul 2006 14:04:24 +0000 (GMT) (envelope-from piso@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k66E4OEm087408 for ; Thu, 6 Jul 2006 14:04:24 GMT (envelope-from piso@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k66E4O3S087405 for perforce@freebsd.org; Thu, 6 Jul 2006 14:04:24 GMT (envelope-from piso@freebsd.org) Date: Thu, 6 Jul 2006 14:04:24 GMT Message-Id: <200607061404.k66E4O3S087405@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to piso@freebsd.org using -f From: Paolo Pisati To: Perforce Change Reviews Cc: Subject: PERFORCE change 100754 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2006 14:04:25 -0000 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 *