cast last argument of catgets() to (char *) to quiet compiler's complaints
about loss of 'const'-ness.
This commit is contained in:
parent
99a919e044
commit
b523e3778b
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
/*static char *sccsid = "from: @(#)strerror.c 5.6 (Berkeley) 5/4/91";*/
|
/*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 */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
@ -71,7 +71,8 @@ __strerror(num, buf)
|
|||||||
errnum = num; /* convert to unsigned */
|
errnum = num; /* convert to unsigned */
|
||||||
if (errnum < sys_nerr) {
|
if (errnum < sys_nerr) {
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
strcpy(buf, catgets(catd, 1, errnum, sys_errlist[errnum]));
|
strcpy(buf, catgets(catd, 1, errnum,
|
||||||
|
(char *)sys_errlist[errnum]));
|
||||||
#else
|
#else
|
||||||
return(sys_errlist[errnum]);
|
return(sys_errlist[errnum]);
|
||||||
#endif
|
#endif
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
/*static char *sccsid = "from: @(#)strerror.c 5.6 (Berkeley) 5/4/91";*/
|
/*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 */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
@ -64,7 +64,8 @@ __strsignal(num, buf)
|
|||||||
signum = num; /* convert to unsigned */
|
signum = num; /* convert to unsigned */
|
||||||
if (signum < NSIG) {
|
if (signum < NSIG) {
|
||||||
#ifdef NLS
|
#ifdef NLS
|
||||||
strcpy(buf, catgets(catd, 2, signum, sys_siglist[signum]));
|
strcpy(buf, catgets(catd, 2, signum,
|
||||||
|
(char *)sys_siglist[signum]));
|
||||||
#else
|
#else
|
||||||
return((char *)sys_siglist[signum]);
|
return((char *)sys_siglist[signum]);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user