const poisoning.

This commit is contained in:
mycroft 1998-07-26 13:51:44 +00:00
parent 4a05bcf0da
commit eb69773cbb
2 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pw_scan.c,v 1.2 1998/06/27 05:08:23 thorpej Exp $ */
/* $NetBSD: pw_scan.c,v 1.3 1998/07/26 13:51:44 mycroft Exp $ */
/*
* Copyright (c) 1987, 1993, 1994, 1995
@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: pw_scan.c,v 1.2 1998/06/27 05:08:23 thorpej Exp $");
__RCSID("$NetBSD: pw_scan.c,v 1.3 1998/07/26 13:51:44 mycroft Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@ -64,7 +64,8 @@ __pw_scan(bp, pw, flags)
{
unsigned long id;
int root, inflags;
char *p, *sh, *ep;
char *p, *ep;
const char *sh;
inflags = 0;
if (flags != (int *)NULL) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: perror.c,v 1.12 1998/02/16 11:27:15 lukem Exp $ */
/* $NetBSD: perror.c,v 1.13 1998/07/26 13:53:20 mycroft Exp $ */
/*
* Copyright (c) 1988, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)perror.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: perror.c,v 1.12 1998/02/16 11:27:15 lukem Exp $");
__RCSID("$NetBSD: perror.c,v 1.13 1998/07/26 13:53:20 mycroft Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -74,7 +74,7 @@ perror(s)
v->iov_len = 2;
v++;
}
v->iov_base = __strerror(errno, buf, sizeof(buf));
v->iov_base = (char *)__strerror(errno, buf, sizeof(buf));
v->iov_len = strlen(v->iov_base);
v++;
v->iov_base = "\n";