diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-09-15 09:32:02 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-09-15 09:32:02 +0000 |
commit | 5839b84db8fa4a49976868786c93b29df9c4d568 (patch) | |
tree | ef3d545e61baa18f319312ada4e97e2c799c24c6 /lib/libc/nls/catopen.c | |
parent | 1d3f47d20a2b64c481a047ce24f39564b3e74533 (diff) |
Remove dead code
Remove unused variables
Silence some warnings
lint(1) is your friend
Diffstat (limited to 'lib/libc/nls/catopen.c')
-rw-r--r-- | lib/libc/nls/catopen.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/nls/catopen.c b/lib/libc/nls/catopen.c index 193250fc24e..ffbfda21c17 100644 --- a/lib/libc/nls/catopen.c +++ b/lib/libc/nls/catopen.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: catopen.c,v 1.7 1996/09/05 12:32:33 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: catopen.c,v 1.8 1996/09/15 09:31:23 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #define _NLS_PRIVATE @@ -54,8 +54,9 @@ static char rcsid[] = "$OpenBSD: catopen.c,v 1.7 1996/09/05 12:32:33 deraadt Exp #define NLS_DEFAULT_PATH "/usr/share/nls/%L/%N.cat:/usr/share/nls/%N/%L" #define NLS_DEFAULT_LANG "C" -static nl_catd load_msgcat(); +static nl_catd load_msgcat __P((const char *)); +/* ARGSUSED */ nl_catd _catopen(name, oflag) const char *name; @@ -141,7 +142,7 @@ load_msgcat(path) return (nl_catd) -1; } - data = mmap(0, (size_t) st.st_size, PROT_READ, MAP_SHARED, fd, 0); + data = mmap(0, (size_t) st.st_size, PROT_READ, MAP_SHARED, fd, (off_t)0); close (fd); if (data == (void *) -1) { |