diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-14 06:49:48 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-14 06:49:48 +0000 |
commit | 4710cee5ae9d061cf473bea056acdd4b8c8ce7c9 (patch) | |
tree | 34d25eb6b04d160d108a4b861891d8a86ad09b88 /lib/libc/yp | |
parent | a397beefe4d81184307c7db3393b718a7ba2ab0c (diff) |
Clean up lint and compile warnings
Diffstat (limited to 'lib/libc/yp')
-rw-r--r-- | lib/libc/yp/xdr_ypstat.c | 4 | ||||
-rw-r--r-- | lib/libc/yp/yp_all.c | 4 | ||||
-rw-r--r-- | lib/libc/yp/ypprot_err.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/yp/xdr_ypstat.c b/lib/libc/yp/xdr_ypstat.c index a596e579dbb..9e1bb85fc03 100644 --- a/lib/libc/yp/xdr_ypstat.c +++ b/lib/libc/yp/xdr_ypstat.c @@ -30,7 +30,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: xdr_ypstat.c,v 1.3 1996/08/19 08:35:07 tholo Exp $"; +static char *rcsid = "$OpenBSD: xdr_ypstat.c,v 1.4 1996/12/14 06:49:45 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -50,5 +50,5 @@ xdr_ypstat(xdrs, objp) XDR *xdrs; ypstat *objp; { - return xdr_enum(xdrs, objp); + return xdr_enum(xdrs, (enum_t *)objp); } diff --git a/lib/libc/yp/yp_all.c b/lib/libc/yp/yp_all.c index 923a5f50719..a858c0415ed 100644 --- a/lib/libc/yp/yp_all.c +++ b/lib/libc/yp/yp_all.c @@ -30,7 +30,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: yp_all.c,v 1.4 1996/08/19 08:35:07 tholo Exp $"; +static char *rcsid = "$OpenBSD: yp_all.c,v 1.5 1996/12/14 06:49:46 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -64,7 +64,7 @@ u_long *objp; while(1) { if( !xdr_ypresp_all(xdrs, &out)) { xdr_free(xdr_ypresp_all, (char *)&out); - *objp = YP_YPERR; + *objp = (u_long)YP_YPERR; return FALSE; } if(out.more == 0) { diff --git a/lib/libc/yp/ypprot_err.c b/lib/libc/yp/ypprot_err.c index 89682a471f3..20873ffc1a1 100644 --- a/lib/libc/yp/ypprot_err.c +++ b/lib/libc/yp/ypprot_err.c @@ -30,7 +30,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: ypprot_err.c,v 1.3 1996/08/19 08:35:13 tholo Exp $"; +static char *rcsid = "$OpenBSD: ypprot_err.c,v 1.4 1996/12/14 06:49:47 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -52,7 +52,7 @@ int ypprot_err(incode) unsigned int incode; { - switch (incode) { + switch ((int)incode) { case YP_TRUE: return 0; case YP_FALSE: |