revert previous change; this reveals another bug in lints LINTED option.
This commit is contained in:
parent
4a3d3570f1
commit
373acb7941
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: perror.c,v 1.17 1998/11/15 17:19:53 christos Exp $ */
|
||||
/* $NetBSD: perror.c,v 1.18 1998/11/17 16:13:59 christos 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.17 1998/11/15 17:19:53 christos Exp $");
|
||||
__RCSID("$NetBSD: perror.c,v 1.18 1998/11/17 16:13:59 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -83,9 +83,9 @@ perror(s)
|
||||
v->iov_len = 2;
|
||||
v++;
|
||||
}
|
||||
v->iov_len = strlen(v->iov_base);
|
||||
/* LINTED we don't touch the string */
|
||||
v->iov_base = (void *)__strerror(errno, buf, sizeof(buf));
|
||||
v->iov_len = strlen(v->iov_base);
|
||||
v++;
|
||||
v->iov_len = 1;
|
||||
v->iov_base = "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user