summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Zelkin <phantom@FreeBSD.org>2000-09-05 12:23:08 +0000
committerAlexey Zelkin <phantom@FreeBSD.org>2000-09-05 12:23:08 +0000
commit316321ebdfb2a0d951888dd12dabf07dbe87c13b (patch)
tree31b542a73c9b947ac24cf9c431820c1aa27d80f9
parentba20acfdb2d791debd23735a1af62d29b71917c0 (diff)
Notes
-rw-r--r--lib/libc/nls/msgcat.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c
index c5ea4a39b66f..bf24d829110f 100644
--- a/lib/libc/nls/msgcat.c
+++ b/lib/libc/nls/msgcat.c
@@ -259,13 +259,17 @@ catclose( catd)
/* Note that only malloc failures are allowed to return an error */
static char* _errowner = "Message Catalog System";;
-#define PROBLEM(err, msg) { \
- fprintf(stderr, msg, _errowner); \
- free(cat); \
- NLRETERR(err); \
+#define CORRUPT() { \
+ fprintf(stderr, "%s: currupt file.", _errowner); \
+ free(cat); \
+ NLRETERR(EINVAL); \
+ }
+
+#define NOSPACE() { \
+ fprintf(stderr, "%s: no more memory.", _errowner); \
+ free(cat); \
+ return(NLERR); \
}
-#define CORRUPT() PROBLEM(EINVAL, "%s: corrupt file.\n")
-#define NOSPACE() PROBLEM(ENOMEM, "%s: no more memory.\n")
static void
__nls_free_resources(cat, i)