trivial changes to quiet lint.
This commit is contained in:
parent
5f05b863b4
commit
8205792218
|
@ -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
|
* Copyright (c) 1983, 1993
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)scandir.c 8.3 (Berkeley) 1/2/94";
|
static char sccsid[] = "@(#)scandir.c 8.3 (Berkeley) 1/2/94";
|
||||||
#else
|
#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
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ scandir(dirname, namelist, select, dcomp)
|
||||||
p->d_reclen = d->d_reclen;
|
p->d_reclen = d->d_reclen;
|
||||||
p->d_type = d->d_type;
|
p->d_type = d->d_type;
|
||||||
p->d_namlen = d->d_namlen;
|
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
|
* Check to make sure the array has space left and
|
||||||
* realloc the maximum size.
|
* realloc the maximum size.
|
||||||
|
|
|
@ -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
|
* Copyright (c) 1989, 1993, 1994
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)setmode.c 8.2 (Berkeley) 3/25/94";
|
static char sccsid[] = "@(#)setmode.c 8.2 (Berkeley) 3/25/94";
|
||||||
#else
|
#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
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ addcmd(set, op, who, oparg, mask)
|
||||||
set->cmd2 = ((who & S_IRUSR) ? CMD2_UBITS : 0) |
|
set->cmd2 = ((who & S_IRUSR) ? CMD2_UBITS : 0) |
|
||||||
((who & S_IRGRP) ? CMD2_GBITS : 0) |
|
((who & S_IRGRP) ? CMD2_GBITS : 0) |
|
||||||
((who & S_IROTH) ? CMD2_OBITS : 0);
|
((who & S_IROTH) ? CMD2_OBITS : 0);
|
||||||
set->bits = ~0;
|
set->bits = (mode_t)~0;
|
||||||
} else {
|
} else {
|
||||||
set->cmd2 = CMD2_UBITS | CMD2_GBITS | CMD2_OBITS;
|
set->cmd2 = CMD2_UBITS | CMD2_GBITS | CMD2_OBITS;
|
||||||
set->bits = mask;
|
set->bits = mask;
|
||||||
|
|
|
@ -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
|
* Copyright (c) 1993
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94";
|
static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94";
|
||||||
#else
|
#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
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ sysconf(name)
|
||||||
mib[1] = KERN_ARGMAX;
|
mib[1] = KERN_ARGMAX;
|
||||||
break;
|
break;
|
||||||
case _SC_CHILD_MAX:
|
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:
|
case _SC_CLK_TCK:
|
||||||
return (CLK_TCK);
|
return (CLK_TCK);
|
||||||
case _SC_JOB_CONTROL:
|
case _SC_JOB_CONTROL:
|
||||||
|
@ -99,7 +99,7 @@ sysconf(name)
|
||||||
mib[1] = KERN_NGROUPS;
|
mib[1] = KERN_NGROUPS;
|
||||||
break;
|
break;
|
||||||
case _SC_OPEN_MAX:
|
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:
|
case _SC_STREAM_MAX:
|
||||||
mib[0] = CTL_USER;
|
mib[0] = CTL_USER;
|
||||||
mib[1] = USER_STREAM_MAX;
|
mib[1] = USER_STREAM_MAX;
|
||||||
|
@ -190,6 +190,7 @@ yesno: if (sysctl(mib, 2, &value, &len, NULL, 0) == -1)
|
||||||
if (value == 0)
|
if (value == 0)
|
||||||
return (-1);
|
return (-1);
|
||||||
return (value);
|
return (value);
|
||||||
|
/*NOTREACHED*/
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
|
|
Loading…
Reference in New Issue