summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv/yp_dblookup.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-02-06 13:30:31 +0000
committerdes <des@FreeBSD.org>2002-02-06 13:30:31 +0000
commit0f2cb9b020b907000a28323fc57a82fdb7d6626d (patch)
treed44f2702502c982570c85130c91c845a83ea8052 /usr.sbin/ypserv/yp_dblookup.c
parent0e1bb965cc26648289a6a22baf0ad5ef4891edb4 (diff)
downloadFreeBSD-src-0f2cb9b020b907000a28323fc57a82fdb7d6626d.zip
FreeBSD-src-0f2cb9b020b907000a28323fc57a82fdb7d6626d.tar.gz
Apply the following mechanical transformations in preparation for
ansification and constification: s{\s+__P\((\(.*?\))\)}{$1}g; s{\(\s+}{\(}g; s{\s+\)}{\)}g; s{\s+,}{,}g; s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g; s{return ([^\(].*?);}{return ($1);}g; s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g; s{\s+$}{\n};g Also add $FreeBSD$ where needed. MFC after: 1 week
Diffstat (limited to 'usr.sbin/ypserv/yp_dblookup.c')
-rw-r--r--usr.sbin/ypserv/yp_dblookup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ypserv/yp_dblookup.c b/usr.sbin/ypserv/yp_dblookup.c
index b3215f9..984736b 100644
--- a/usr.sbin/ypserv/yp_dblookup.c
+++ b/usr.sbin/ypserv/yp_dblookup.c
@@ -181,10 +181,10 @@ void yp_flush_all()
{
register struct circleq_entry *qptr;
- while(!TAILQ_EMPTY(&qhead)) {
+ while (!TAILQ_EMPTY(&qhead)) {
qptr = TAILQ_FIRST(&qhead); /* save this */
TAILQ_REMOVE(&qhead, qptr, links);
- yp_free_qent(qptr);
+ yp_free_qent(qptr);
}
numdbs = 0;
@@ -415,7 +415,7 @@ again:
dbp = dbopen(buf,O_RDONLY, PERM_SECURE, DB_HASH, NULL);
if (dbp == NULL) {
- switch(errno) {
+ switch (errno) {
#ifdef DB_CACHE
case ENFILE:
/*
@@ -449,7 +449,7 @@ again:
* to match against.
*
* - yp_first_record(): retrieve first key/data base in a database.
- *
+ *
* - yp_next_record(): retrieve key/data pair that sequentially follows
* the supplied key value in the database.
*/
@@ -542,7 +542,7 @@ int yp_first_record(dbp,key,data,allow)
#endif
if (rval == 1)
return(YP_NOKEY);
- else
+ else
return(YP_BADDB);
}
@@ -623,7 +623,7 @@ int yp_next_record(dbp,key,data,all,allow)
return(YP_NOKEY);
}
-#ifdef DB_CACHE
+#ifdef DB_CACHE
}
#endif
}
OpenPOWER on IntegriCloud