cast last argument of catgets() to (char *) to quiet compiler's complaints

about loss of 'const'-ness.
This commit is contained in:
cgd 1995-04-24 16:37:31 +00:00
parent 99a919e044
commit b523e3778b
2 changed files with 6 additions and 4 deletions

View File

@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)strerror.c 5.6 (Berkeley) 5/4/91";*/
static char *rcsid = "$Id: __strerror.c,v 1.5 1994/12/12 22:42:20 jtc Exp $";
static char *rcsid = "$Id: __strerror.c,v 1.6 1995/04/24 16:37:31 cgd Exp $";
#endif /* LIBC_SCCS and not lint */
#ifdef NLS
@ -71,7 +71,8 @@ __strerror(num, buf)
errnum = num; /* convert to unsigned */
if (errnum < sys_nerr) {
#ifdef NLS
strcpy(buf, catgets(catd, 1, errnum, sys_errlist[errnum]));
strcpy(buf, catgets(catd, 1, errnum,
(char *)sys_errlist[errnum]));
#else
return(sys_errlist[errnum]);
#endif

View File

@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)strerror.c 5.6 (Berkeley) 5/4/91";*/
static char *rcsid = "$Id: __strsignal.c,v 1.7 1994/12/12 22:42:22 jtc Exp $";
static char *rcsid = "$Id: __strsignal.c,v 1.8 1995/04/24 16:37:34 cgd Exp $";
#endif /* LIBC_SCCS and not lint */
#ifdef NLS
@ -64,7 +64,8 @@ __strsignal(num, buf)
signum = num; /* convert to unsigned */
if (signum < NSIG) {
#ifdef NLS
strcpy(buf, catgets(catd, 2, signum, sys_siglist[signum]));
strcpy(buf, catgets(catd, 2, signum,
(char *)sys_siglist[signum]));
#else
return((char *)sys_siglist[signum]);
#endif