From: Ulrich Drepper Date: Sun, 8 Jul 2001 09:47:01 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.20~15888 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f6b4f1db0f14aae1db02779cb9b79c542574563;p=platform%2Fupstream%2Flinaro-glibc.git Update. * sysdeps/unix/make_errlist.c: Adjust sys_errlist declaration to what we define in . --- diff --git a/ChangeLog b/ChangeLog index 2ccd09b..a4dc16f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-07-08 Ulrich Drepper + * sysdeps/unix/make_errlist.c: Adjust sys_errlist declaration to + what we define in . + * iconv/iconv_prog.c (main): Don't unconditionally define variables only use if _POSIX_MAPPED_FILES is defined. diff --git a/sysdeps/unix/make_errlist.c b/sysdeps/unix/make_errlist.c index bba41ad..8b2b972 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;