diff options
| author | christos <christos@NetBSD.org> | 1998-11-15 17:21:49 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1998-11-15 17:21:49 +0000 |
| commit | 8cc3f31582bebc97a110ee04eeef0c218edde9d6 (patch) | |
| tree | f859fff4f9c1c8e2492196dc646ad2d6e6182adf /lib/libc/string/__strerror.c | |
| parent | f8dfd806d0341d320cb25c1e7e8ee09088d745af (diff) | |
delint
Diffstat (limited to 'lib/libc/string/__strerror.c')
| -rw-r--r-- | lib/libc/string/__strerror.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/string/__strerror.c b/lib/libc/string/__strerror.c index 24a2c2d9b5f..46a0f27a45a 100644 --- a/lib/libc/string/__strerror.c +++ b/lib/libc/string/__strerror.c @@ -1,4 +1,4 @@ -/* $NetBSD: __strerror.c,v 1.13 1998/07/26 13:36:34 mycroft Exp $ */ +/* $NetBSD: __strerror.c,v 1.14 1998/11/15 17:21:49 christos Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -38,7 +38,7 @@ #if 0 static char *sccsid = "@(#)strerror.c 5.6 (Berkeley) 5/4/91"; #else -__RCSID("$NetBSD: __strerror.c,v 1.13 1998/07/26 13:36:34 mycroft Exp $"); +__RCSID("$NetBSD: __strerror.c,v 1.14 1998/11/15 17:21:49 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -63,7 +63,7 @@ const char * __strerror(num, buf, buflen) int num; char *buf; - int buflen; + size_t buflen; { #define UPREFIX "Unknown error: %u" unsigned int errnum; @@ -76,8 +76,8 @@ __strerror(num, buf, buflen) errnum = num; /* convert to unsigned */ if (errnum < sys_nerr) { #ifdef NLS - strncpy(buf, catgets(catd, 1, errnum, - (char *)sys_errlist[errnum]), buflen); + (void)strncpy(buf, catgets(catd, 1, (int)errnum, + sys_errlist[errnum]), buflen); buf[buflen - 1] = '\0'; #else return(sys_errlist[errnum]); |
