diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-12 05:42:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-12 05:42:10 +0000 |
commit | a1df229f8eb599c4676b33ce1bec6096908e1b75 (patch) | |
tree | 1a2e5fa7ea3a3e2d814e76af8a0dbb9ff3699607 /usr.sbin | |
parent | 9680544fbf90f63ee97bcc943b2047926ca27003 (diff) |
a sprinkle of knf
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/portmap/portmap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/portmap/portmap.c b/usr.sbin/portmap/portmap.c index 1eb21d78827..1458afa256b 100644 --- a/usr.sbin/portmap/portmap.c +++ b/usr.sbin/portmap/portmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: portmap.c,v 1.38 2009/10/27 23:59:53 deraadt Exp $ */ +/* $OpenBSD: portmap.c,v 1.39 2009/11/12 05:42:09 deraadt Exp $ */ /*- * Copyright (c) 1996, 1997 Theo de Raadt (OpenBSD). All rights reserved. @@ -369,11 +369,12 @@ reg_service(struct svc_req *rqstp, SVCXPRT *xprt) pml->pml_map = reg; pml->pml_next = 0; - if (pmaplist == 0) { + if (pmaplist == NULL) { pmaplist = pml; } else { for (fnd = pmaplist; fnd->pml_next != 0; - fnd = fnd->pml_next); + fnd = fnd->pml_next) + ; fnd->pml_next = pml; } ans = 1; |