summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-07-17 13:15:58 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-07-17 13:15:58 +0000
commiteda0d3b4215366b1064f62e087ea2582673b2b87 (patch)
treeded8d473bb5e84bb04cfdac8c8f27358d217c1b8
parentd1aebed716dc0548f88d8b7118ef536dc8856236 (diff)
KNF
I slacked again. 10x markus.
-rw-r--r--usr.sbin/httpd/src/main/fdcache.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/httpd/src/main/fdcache.c b/usr.sbin/httpd/src/main/fdcache.c
index d9807b2c346..43e903e2b3d 100644
--- a/usr.sbin/httpd/src/main/fdcache.c
+++ b/usr.sbin/httpd/src/main/fdcache.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdcache.c,v 1.1 2002/07/17 11:17:00 henning Exp $ */
+/* $OpenBSD: fdcache.c,v 1.2 2002/07/17 13:15:57 henning Exp $ */
/*
* Copyright (c) 2002 Henning Brauer
@@ -48,12 +48,11 @@ fdcache_open(char *fn, int flags, mode_t mode)
{
struct fdcache *fdcp = NULL, *tmp = NULL;
- for(fdcp = fdc; fdcp && strncmp(fn, fdcp->fname, 1024);
+ for (fdcp = fdc; fdcp && strncmp(fn, fdcp->fname, 1024);
fdcp = fdcp->next);
/* nothing */
- if (fdcp == NULL)
- {
+ if (fdcp == NULL) {
/* need to open */
tmp = calloc(1, sizeof(struct fdcache));
if (tmp == NULL) {
@@ -83,8 +82,7 @@ fdcache_closeall()
{
struct fdcache *fdcp = NULL;
- for(fdcp = fdc; fdcp; fdcp = fdcp->next)
- {
+ for (fdcp = fdc; fdcp; fdcp = fdcp->next) {
if (fdcp->fd > 0)
close(fdcp->fd);
free(fdcp->fname);