diff options
Diffstat (limited to 'lib/libc/yp/xdryp.c')
-rw-r--r-- | lib/libc/yp/xdryp.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libc/yp/xdryp.c b/lib/libc/yp/xdryp.c index 905f89d..3d865fe 100644 --- a/lib/libc/yp/xdryp.c +++ b/lib/libc/yp/xdryp.c @@ -72,19 +72,19 @@ u_long *objp; int r; bzero(&out, sizeof out); - while(1) { - if( !xdr_ypresp_all(xdrs, &out)) { + while (1) { + if (!xdr_ypresp_all(xdrs, &out)) { xdr_free(xdr_ypresp_all, (char *)&out); *objp = YP_YPERR; - return FALSE; + return (FALSE); } - if(out.more == 0) { + if (out.more == 0) { xdr_free(xdr_ypresp_all, (char *)&out); *objp = YP_NOMORE; - return TRUE; + return (TRUE); } status = out.ypresp_all_u.val.stat; - switch(status) { + switch (status) { case YP_TRUE: key = (char *)malloc(out.ypresp_all_u.val.key.keydat_len + 1); bcopy(out.ypresp_all_u.val.key.keydat_val, key, @@ -103,17 +103,17 @@ u_long *objp; *objp = status; free(key); free(val); - if(r) - return TRUE; + if (r) + return (TRUE); break; case YP_NOMORE: xdr_free(xdr_ypresp_all, (char *)&out); *objp = YP_NOMORE; - return TRUE; + return (TRUE); default: xdr_free(xdr_ypresp_all, (char *)&out); *objp = status; - return TRUE; + return (TRUE); } } } |