PERFORCE change 100754 for review
Paolo Pisati
piso at FreeBSD.org
Thu Jul 6 14:04:25 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=100754
Change 100754 by piso at 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 *
More information about the p4-projects
mailing list