summaryrefslogtreecommitdiffstats
path: root/lib/libc/nls
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-04-30 11:39:08 +0000
committerache <ache@FreeBSD.org>1998-04-30 11:39:08 +0000
commitc21e828637035b02c47764b7cedfeef3e145db96 (patch)
treeb07648c1ecd5663ed50b1be85f977458acf52c64 /lib/libc/nls
parent1eaf120df93e4e7920ee597dd5c9389b5bdfc1d8 (diff)
downloadFreeBSD-src-c21e828637035b02c47764b7cedfeef3e145db96.zip
FreeBSD-src-c21e828637035b02c47764b7cedfeef3e145db96.tar.gz
Force loadType to 0
Diffstat (limited to 'lib/libc/nls')
-rw-r--r--lib/libc/nls/msgcat.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c
index d19c70e..df8977d 100644
--- a/lib/libc/nls/msgcat.c
+++ b/lib/libc/nls/msgcat.c
@@ -1,4 +1,4 @@
-/* $Id: msgcat.c,v 1.13 1998/04/30 10:14:55 ache Exp $ */
+/* $Id: msgcat.c,v 1.14 1998/04/30 11:06:12 ache Exp $ */
/***********************************************************
Copyright 1990, by Alfalfa Software Incorporated, Cambridge, Massachusetts.
@@ -149,7 +149,7 @@ int type;
if (!catpath) return(NLERR);
}
- return(loadCat(catpath, type));
+ return(loadCat(catpath));
}
/*
@@ -296,9 +296,8 @@ nl_catd catd;
#define CORRUPT() {fprintf(stderr, "%s: corrupt file.\n", ERRNAME); free(cat); return(NLERR);}
#define NOSPACE() {fprintf(stderr, "%s: no more memory.\n", ERRNAME); free(cat); return(NLERR);}
-static nl_catd loadCat( catpath, type)
+static nl_catd loadCat(catpath)
__const char *catpath;
-int type;
{
MCHeaderT header;
MCCatT *cat;
@@ -308,7 +307,7 @@ int type;
cat = (MCCatT *) malloc(sizeof(MCCatT));
if (!cat) return(NLERR);
- cat->loadType = type;
+ cat->loadType = MCLoadBySet;
if ((cat->fd = open(catpath, O_RDONLY)) < 0) {
free(cat);
OpenPOWER on IntegriCloud