about summary refs log tree commit diff
path: root/sysdeps/unix/make_errlist.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-07-08 09:47:01 +0000
committerUlrich Drepper <drepper@redhat.com>2001-07-08 09:47:01 +0000
commit5f6b4f1db0f14aae1db02779cb9b79c542574563 (patch)
tree2da265d256e2393a1b38a10c4e23723dc7644f6c /sysdeps/unix/make_errlist.c
parentd3f8be6d13d065287a55177878ebac4b75e197e2 (diff)
downloadglibc-5f6b4f1db0f14aae1db02779cb9b79c542574563.tar.gz
glibc-5f6b4f1db0f14aae1db02779cb9b79c542574563.tar.xz
glibc-5f6b4f1db0f14aae1db02779cb9b79c542574563.zip
Update.
	* sysdeps/unix/make_errlist.c: Adjust sys_errlist declaration to
	what we define in <stdio.h>.
Diffstat (limited to 'sysdeps/unix/make_errlist.c')
-rw-r--r--sysdeps/unix/make_errlist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/unix/make_errlist.c b/sysdeps/unix/make_errlist.c
index bba41adfce..8b2b972a8a 100644
--- a/sysdeps/unix/make_errlist.c
+++ b/sysdeps/unix/make_errlist.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1995, 1997, 1999, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1992,1995,1997,1999,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -23,19 +23,19 @@
 
 extern int sys_nerr;
 #ifndef HAVE_STRERROR
-extern char *sys_errlist[];
+extern const char *const sys_errlist[];
 #endif
 
 int
-main ()
+main (void)
 {
   register int i;
   struct tm timenow;
   time_t now;
   int year;
 
-  now = time(NULL);
-  timenow = *localtime(&now);
+  now = time (NULL);
+  timenow = *localtime (&now);
 
   year = timenow.tm_year + 1900;