diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-02-05 23:29:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-02-05 23:29:24 +0000 |
commit | f2b98f97ebc32b68271505131b745289f3255984 (patch) | |
tree | c0b00f281985b708c6b991648a05be6752f96868 /locale/programs/charmap-dir.c | |
parent | 475361200b40615d2d459c8d6a7544fdf4f9533a (diff) | |
download | glibc-f2b98f97ebc32b68271505131b745289f3255984.tar.gz glibc-f2b98f97ebc32b68271505131b745289f3255984.tar.xz glibc-f2b98f97ebc32b68271505131b745289f3255984.zip |
Update.
* inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct definition and pass &errno in use of this variable. Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911]. 2002-02-04 Andreas Schwab <schwab@suse.de> * locale/programs/localedef.h (WITH_CUR_LOCALE): Define. * locale/programs/charmap-dir.c: Wrap calls that output messages with WITH_CUR_LOCALE. Include "localedef.h" first. * locale/programs/charmap.c: Likewise. * locale/programs/ld-address.c: Likewise. * locale/programs/ld-collate.c: Likewise. * locale/programs/ld-ctype.c: Likewise. * locale/programs/ld-identification.c: Likewise. * locale/programs/ld-measurement.c: Likewise. * locale/programs/ld-messages.c: Likewise. * locale/programs/ld-monetary.c: Likewise. * locale/programs/ld-name.c: Likewise. * locale/programs/ld-numeric.c: Likewise. * locale/programs/ld-paper.c: Likewise. * locale/programs/ld-telephone.c: Likewise. * locale/programs/ld-time.c: Likewise. * locale/programs/linereader.c: Likewise. * locale/programs/linereader.h: Likewise. * locale/programs/localedef.c: Likewise. * locale/programs/locfile.c: Likewise. * locale/programs/repertoire.c: Likewise. 2002-02-05 Ulrich Drepper <drepper@redhat.com>
Diffstat (limited to 'locale/programs/charmap-dir.c')
-rw-r--r-- | locale/programs/charmap-dir.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/locale/programs/charmap-dir.c b/locale/programs/charmap-dir.c index 14cf765632..a7a453552b 100644 --- a/locale/programs/charmap-dir.c +++ b/locale/programs/charmap-dir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000,2001 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2001, 2002 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 @@ -28,11 +28,9 @@ #include <unistd.h> #include <sys/stat.h> +#include "localedef.h" #include "charmap-dir.h" -extern void *xmalloc (size_t n); -extern void *xrealloc (void *p, size_t n); - /* The data type of a charmap directory being traversed. */ struct charmap_dir { @@ -58,8 +56,8 @@ charmap_opendir (const char *directory) dir = opendir (directory); if (dir == NULL) { - error (1, errno, gettext ("cannot read character map directory `%s'"), - directory); + WITH_CUR_LOCALE (error (1, errno, gettext ("\ +cannot read character map directory `%s'"), directory)); return NULL; } |