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
|
* Copyright (c) 1988, 1993
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)perror.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)perror.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#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
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
@ -83,9 +83,9 @@ perror(s)
|
|||||||
v->iov_len = 2;
|
v->iov_len = 2;
|
||||||
v++;
|
v++;
|
||||||
}
|
}
|
||||||
v->iov_len = strlen(v->iov_base);
|
|
||||||
/* LINTED we don't touch the string */
|
/* LINTED we don't touch the string */
|
||||||
v->iov_base = (void *)__strerror(errno, buf, sizeof(buf));
|
v->iov_base = (void *)__strerror(errno, buf, sizeof(buf));
|
||||||
|
v->iov_len = strlen(v->iov_base);
|
||||||
v++;
|
v++;
|
||||||
v->iov_len = 1;
|
v->iov_len = 1;
|
||||||
v->iov_base = "\n";
|
v->iov_base = "\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user