diff options
Diffstat (limited to 'usr.sbin/ypserv/yp_dblookup.c')
-rw-r--r-- | usr.sbin/ypserv/yp_dblookup.c | 12 |
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 } |