Make these compile without __AUDIT__.
This commit is contained in:
parent
4f4968a946
commit
131e747015
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: getgrent.c,v 1.23 1998/07/26 19:05:07 mycroft Exp $ */
|
||||
/* $NetBSD: getgrent.c,v 1.24 1998/07/27 09:47:44 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -39,7 +39,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)getgrent.c 8.2 (Berkeley) 3/21/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: getgrent.c,v 1.23 1998/07/26 19:05:07 mycroft Exp $");
|
||||
__RCSID("$NetBSD: getgrent.c,v 1.24 1998/07/27 09:47:44 mycroft Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -72,7 +72,7 @@ static int grscan __P((int, gid_t, const char *));
|
||||
static int start_gr __P((void));
|
||||
|
||||
#define MAXGRP 200
|
||||
static const char *members[MAXGRP];
|
||||
static __aconst char *members[MAXGRP];
|
||||
#define MAXLINELENGTH 1024
|
||||
static char line[MAXLINELENGTH];
|
||||
|
||||
@ -176,7 +176,7 @@ grscan(search, gid, name)
|
||||
gid_t gid;
|
||||
const char *name;
|
||||
{
|
||||
const char **m;
|
||||
__aconst char **m;
|
||||
char *cp, *bp, *ep;
|
||||
unsigned long id;
|
||||
#ifdef YP
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: getnetgrent.c,v 1.15 1998/07/26 19:34:10 mycroft Exp $ */
|
||||
/* $NetBSD: getnetgrent.c,v 1.16 1998/07/27 09:47:44 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christos Zoulas
|
||||
@ -33,7 +33,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: getnetgrent.c,v 1.15 1998/07/26 19:34:10 mycroft Exp $");
|
||||
__RCSID("$NetBSD: getnetgrent.c,v 1.16 1998/07/27 09:47:44 mycroft Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include "namespace.h"
|
||||
@ -69,7 +69,7 @@ static struct netgroup *_nghead = (struct netgroup *)NULL;
|
||||
static struct netgroup *_nglist = (struct netgroup *)NULL;
|
||||
static DB *_ng_db;
|
||||
|
||||
static int getstring __P((char **, int, const char **));
|
||||
static int getstring __P((char **, int, __aconst char **));
|
||||
static struct netgroup *getnetgroup __P((char **));
|
||||
static int lookup __P((const char *, char *, char **, int));
|
||||
static void addgroup __P((char *, StringList *, char *));
|
||||
@ -91,7 +91,7 @@ static int
|
||||
getstring(pp, del, str)
|
||||
char **pp;
|
||||
int del;
|
||||
char const **str;
|
||||
char __aconst **str;
|
||||
{
|
||||
size_t len;
|
||||
char *sp, *ep, *dp;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: getusershell.c,v 1.9 1998/07/26 13:42:28 mycroft Exp $ */
|
||||
/* $NetBSD: getusershell.c,v 1.10 1998/07/27 09:47:45 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1985, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)getusershell.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: getusershell.c,v 1.9 1998/07/26 13:42:28 mycroft Exp $");
|
||||
__RCSID("$NetBSD: getusershell.c,v 1.10 1998/07/27 09:47:45 mycroft Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -71,14 +71,14 @@ static const char *const *initshells __P((void));
|
||||
/*
|
||||
* Get a list of shells from _PATH_SHELLS, if it exists.
|
||||
*/
|
||||
const char *
|
||||
__aconst char *
|
||||
getusershell()
|
||||
{
|
||||
const char *ret;
|
||||
__aconst char *ret;
|
||||
|
||||
if (curshell == NULL)
|
||||
curshell = initshells();
|
||||
ret = *curshell;
|
||||
ret = (__aconst char *)*curshell;
|
||||
if (ret != NULL)
|
||||
curshell++;
|
||||
return (ret);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: strerror.c,v 1.9 1998/07/26 13:36:34 mycroft Exp $ */
|
||||
/* $NetBSD: strerror.c,v 1.10 1998/07/27 09:47:45 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 Regents of the University of California.
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char *sccsid = "@(#)strerror.c 5.6 (Berkeley) 5/4/91";
|
||||
#else
|
||||
__RCSID("$NetBSD: strerror.c,v 1.9 1998/07/26 13:36:34 mycroft Exp $");
|
||||
__RCSID("$NetBSD: strerror.c,v 1.10 1998/07/27 09:47:45 mycroft Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -52,11 +52,11 @@ __RCSID("$NetBSD: strerror.c,v 1.9 1998/07/26 13:36:34 mycroft Exp $");
|
||||
* internal function __strerror().
|
||||
*/
|
||||
|
||||
const char *
|
||||
__aconst char *
|
||||
strerror(num)
|
||||
int num;
|
||||
{
|
||||
static char buf[NL_TEXTMAX];
|
||||
|
||||
return __strerror(num, buf, sizeof(buf));
|
||||
return (__aconst char *)__strerror(num, buf, sizeof(buf));
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: strsignal.c,v 1.8 1998/07/26 13:36:34 mycroft Exp $ */
|
||||
/* $NetBSD: strsignal.c,v 1.9 1998/07/27 09:47:45 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 Regents of the University of California.
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char *sccsid = "@(#)strerror.c 5.6 (Berkeley) 5/4/91";
|
||||
#else
|
||||
__RCSID("$NetBSD: strsignal.c,v 1.8 1998/07/26 13:36:34 mycroft Exp $");
|
||||
__RCSID("$NetBSD: strsignal.c,v 1.9 1998/07/27 09:47:45 mycroft Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -51,11 +51,11 @@ __RCSID("$NetBSD: strsignal.c,v 1.8 1998/07/26 13:36:34 mycroft Exp $");
|
||||
__weak_alias(strsignal,_strsignal);
|
||||
#endif
|
||||
|
||||
const char *
|
||||
__aconst char *
|
||||
strsignal(sig)
|
||||
int sig;
|
||||
{
|
||||
static char buf[NL_TEXTMAX];
|
||||
|
||||
return __strsignal(sig, buf, NL_TEXTMAX);
|
||||
return (__aconst char *)__strsignal(sig, buf, NL_TEXTMAX);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: localtime.c,v 1.15 1998/07/26 13:00:41 mycroft Exp $ */
|
||||
/* $NetBSD: localtime.c,v 1.16 1998/07/27 09:47:45 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
** This file is in the public domain, so clarified as of
|
||||
@ -11,7 +11,7 @@
|
||||
#if 0
|
||||
static char elsieid[] = "@(#)localtime.c 7.64";
|
||||
#else
|
||||
__RCSID("$NetBSD: localtime.c,v 1.15 1998/07/26 13:00:41 mycroft Exp $");
|
||||
__RCSID("$NetBSD: localtime.c,v 1.16 1998/07/27 09:47:45 mycroft Exp $");
|
||||
#endif
|
||||
#endif /* !defined NOID */
|
||||
#endif /* !defined lint */
|
||||
@ -190,9 +190,9 @@ static char lcl_TZname[TZ_STRLEN_MAX + 1];
|
||||
static int lcl_is_set;
|
||||
static int gmt_is_set;
|
||||
|
||||
const char * tzname[2] = {
|
||||
wildabbr,
|
||||
wildabbr
|
||||
__aconst char * tzname[2] = {
|
||||
(__aconst char *)wildabbr,
|
||||
(__aconst char *)wildabbr
|
||||
};
|
||||
|
||||
/*
|
||||
@ -246,8 +246,8 @@ settzname P((void))
|
||||
register struct state * const sp = lclptr;
|
||||
register int i;
|
||||
|
||||
tzname[0] = wildabbr;
|
||||
tzname[1] = wildabbr;
|
||||
tzname[0] = (__aconst char *)wildabbr;
|
||||
tzname[1] = (__aconst char *)wildabbr;
|
||||
#ifdef USG_COMPAT
|
||||
daylight = 0;
|
||||
timezone = 0;
|
||||
@ -1107,7 +1107,7 @@ struct tm * const tmp;
|
||||
** but this is no time for a treasure hunt.
|
||||
*/
|
||||
if (offset != 0)
|
||||
tmp->TM_ZONE = wildabbr;
|
||||
tmp->TM_ZONE = (__aconst char *)wildabbr;
|
||||
else {
|
||||
#ifdef ALL_STATE
|
||||
if (gmtptr == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user