const poisoning.
This commit is contained in:
parent
160249f79c
commit
3d7514132e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: zdump.c,v 1.8 1998/01/22 07:07:00 jtc Exp $ */
|
||||
/* $NetBSD: zdump.c,v 1.9 1998/07/26 16:03:16 mycroft Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
|
@ -6,7 +6,7 @@
|
|||
#if 0
|
||||
static char elsieid[] = "@(#)zdump.c 7.27";
|
||||
#else
|
||||
__RCSID("$NetBSD: zdump.c,v 1.8 1998/01/22 07:07:00 jtc Exp $");
|
||||
__RCSID("$NetBSD: zdump.c,v 1.9 1998/07/26 16:03:16 mycroft Exp $");
|
||||
#endif
|
||||
#endif /* !defined NOID */
|
||||
#endif /* !defined lint */
|
||||
|
@ -132,9 +132,8 @@ extern int getopt P((int argc, char * const argv[],
|
|||
const char * options));
|
||||
extern char * optarg;
|
||||
extern int optind;
|
||||
extern char * tzname[2];
|
||||
|
||||
static char * abbr P((struct tm * tmp));
|
||||
static const char * abbr P((struct tm * tmp));
|
||||
static long delta P((struct tm * newp, struct tm * oldp));
|
||||
static time_t hunt P((char * name, time_t lot, time_t hit));
|
||||
int main P((int, char **));
|
||||
|
@ -366,12 +365,12 @@ int v;
|
|||
(void) printf("\n");
|
||||
}
|
||||
|
||||
static char *
|
||||
static const char *
|
||||
abbr(tmp)
|
||||
struct tm * tmp;
|
||||
{
|
||||
register char * result;
|
||||
static char nada;
|
||||
register const char * result;
|
||||
static const char nada;
|
||||
|
||||
if (tmp->tm_isdst != 0 && tmp->tm_isdst != 1)
|
||||
return &nada;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: print-nfs.c,v 1.8 1997/10/03 19:55:25 christos Exp $ */
|
||||
/* $NetBSD: print-nfs.c,v 1.9 1998/07/26 16:01:12 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
|
||||
|
@ -27,7 +27,7 @@
|
|||
static const char rcsid[] =
|
||||
"@(#) Header: print-nfs.c,v 1.65 97/08/17 13:24:22 leres Exp (LBL)";
|
||||
#else
|
||||
__RCSID("$NetBSD: print-nfs.c,v 1.8 1997/10/03 19:55:25 christos Exp $");
|
||||
__RCSID("$NetBSD: print-nfs.c,v 1.9 1998/07/26 16:01:12 mycroft Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -882,7 +882,7 @@ trunc:
|
|||
/*
|
||||
* Not all systems have strerror().
|
||||
*/
|
||||
static char *
|
||||
static const char *
|
||||
strerr(int errno)
|
||||
{
|
||||
return (strerror(errno));
|
||||
|
@ -898,7 +898,7 @@ parsestatus(const u_int32_t *dp, int *er)
|
|||
if (er)
|
||||
*er = errno;
|
||||
if (errno != 0 && !qflag) {
|
||||
char *errmsg;
|
||||
const char *errmsg;
|
||||
|
||||
errmsg = strerr(errno);
|
||||
if (errmsg)
|
||||
|
|
Loading…
Reference in New Issue