trivial changes to quiet lint.

This commit is contained in:
perry 1998-02-27 18:34:06 +00:00
parent 5f05b863b4
commit 8205792218
3 changed files with 11 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: scandir.c,v 1.10 1998/02/03 18:23:52 perry Exp $ */
/* $NetBSD: scandir.c,v 1.11 1998/02/27 18:34:06 perry Exp $ */
/*
* Copyright (c) 1983, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)scandir.c 8.3 (Berkeley) 1/2/94";
#else
__RCSID("$NetBSD: scandir.c,v 1.10 1998/02/03 18:23:52 perry Exp $");
__RCSID("$NetBSD: scandir.c,v 1.11 1998/02/27 18:34:06 perry Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -113,7 +113,7 @@ scandir(dirname, namelist, select, dcomp)
p->d_reclen = d->d_reclen;
p->d_type = d->d_type;
p->d_namlen = d->d_namlen;
bcopy(d->d_name, p->d_name, p->d_namlen + 1);
bcopy(d->d_name, p->d_name, (size_t)(p->d_namlen + 1));
/*
* Check to make sure the array has space left and
* realloc the maximum size.

View File

@ -1,4 +1,4 @@
/* $NetBSD: setmode.c,v 1.19 1998/02/03 18:23:52 perry Exp $ */
/* $NetBSD: setmode.c,v 1.20 1998/02/27 18:36:43 perry Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)setmode.c 8.2 (Berkeley) 3/25/94";
#else
__RCSID("$NetBSD: setmode.c,v 1.19 1998/02/03 18:23:52 perry Exp $");
__RCSID("$NetBSD: setmode.c,v 1.20 1998/02/27 18:36:43 perry Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -384,7 +384,7 @@ addcmd(set, op, who, oparg, mask)
set->cmd2 = ((who & S_IRUSR) ? CMD2_UBITS : 0) |
((who & S_IRGRP) ? CMD2_GBITS : 0) |
((who & S_IROTH) ? CMD2_OBITS : 0);
set->bits = ~0;
set->bits = (mode_t)~0;
} else {
set->cmd2 = CMD2_UBITS | CMD2_GBITS | CMD2_OBITS;
set->bits = mask;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysconf.c,v 1.5 1997/07/21 14:07:35 jtc Exp $ */
/* $NetBSD: sysconf.c,v 1.6 1998/02/27 18:43:12 perry Exp $ */
/*-
* Copyright (c) 1993
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94";
#else
__RCSID("$NetBSD: sysconf.c,v 1.5 1997/07/21 14:07:35 jtc Exp $");
__RCSID("$NetBSD: sysconf.c,v 1.6 1998/02/27 18:43:12 perry Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -87,7 +87,7 @@ sysconf(name)
mib[1] = KERN_ARGMAX;
break;
case _SC_CHILD_MAX:
return (getrlimit(RLIMIT_NPROC, &rl) ? -1 : rl.rlim_cur);
return (getrlimit(RLIMIT_NPROC, &rl) ? -1 : (long)rl.rlim_cur);
case _SC_CLK_TCK:
return (CLK_TCK);
case _SC_JOB_CONTROL:
@ -99,7 +99,7 @@ sysconf(name)
mib[1] = KERN_NGROUPS;
break;
case _SC_OPEN_MAX:
return (getrlimit(RLIMIT_NOFILE, &rl) ? -1 : rl.rlim_cur);
return (getrlimit(RLIMIT_NOFILE, &rl) ? -1 : (long)rl.rlim_cur);
case _SC_STREAM_MAX:
mib[0] = CTL_USER;
mib[1] = USER_STREAM_MAX;
@ -190,6 +190,7 @@ yesno: if (sysctl(mib, 2, &value, &len, NULL, 0) == -1)
if (value == 0)
return (-1);
return (value);
/*NOTREACHED*/
break;
default:
errno = EINVAL;