summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1993-12-02 04:45:32 +0000
committermycroft <mycroft@NetBSD.org>1993-12-02 04:45:32 +0000
commite14697d8f2fa3d998f3428ccdce7b43de1918cd6 (patch)
tree30f6ef8f93fc1fc7e11434f1624d66014fd0f926
parent23cbd7cc0b154f86573c44d176e14173c4f76d77 (diff)
Add `const's to sys_errlist decl to match 4.4.
-rw-r--r--include/stdio.h4
-rw-r--r--lib/libc/gen/errlst.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 9413ff987f2..6d42c13d10d 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)stdio.h 5.17 (Berkeley) 6/3/91
- * $Id: stdio.h,v 1.8 1993/12/01 23:59:29 jtc Exp $
+ * $Id: stdio.h,v 1.9 1993/12/02 04:45:32 mycroft Exp $
*/
#ifndef _STDIO_H_
@@ -218,7 +218,7 @@ int getchar __P((void));
char *gets __P((char *));
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
extern int sys_nerr; /* perror(3) external variables */
-extern char *sys_errlist[];
+extern const char *const sys_errlist[];
#endif
void perror __P((const char *));
int printf __P((const char *, ...));
diff --git a/lib/libc/gen/errlst.c b/lib/libc/gen/errlst.c
index e170442f95f..2662ebf03f9 100644
--- a/lib/libc/gen/errlst.c
+++ b/lib/libc/gen/errlst.c
@@ -33,10 +33,10 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)errlst.c 5.10 (Berkeley) 2/19/91";*/
-static char *rcsid = "$Id: errlst.c,v 1.4 1993/10/13 23:41:02 jtc Exp $";
+static char *rcsid = "$Id: errlst.c,v 1.5 1993/12/02 04:47:00 mycroft Exp $";
#endif /* LIBC_SCCS and not lint */
-char *sys_errlist[] = {
+const char *const sys_errlist[] = {
"Undefined error: 0", /* 0 - ENOERROR */
"Operation not permitted", /* 1 - EPERM */
"No such file or directory", /* 2 - ENOENT */