From: Jason Molenda Date: Tue, 30 Jun 1998 02:40:12 +0000 (+0000) Subject: Mon Jun 29 19:01:18 1998 Jim Wilson X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d40d5880c209617e3e4c951ed70b083c76b4cc37;p=binutils-gdb.git Mon Jun 29 19:01:18 1998 Jim Wilson * gnu-regex.c (re_comp): Add cast to char * before gettext calls. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b84050eaae1..66ab82f5f0d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Mon Jun 29 19:01:18 1998 Jim Wilson + + * gnu-regex.c (re_comp): Add cast to char * before gettext calls. + Sun Jun 28 11:35:48 1998 Peter Schauer Improve support for SunPro F77. diff --git a/gdb/gnu-regex.c b/gdb/gnu-regex.c index 1c9b6fb57c8..846250aad46 100644 --- a/gdb/gnu-regex.c +++ b/gdb/gnu-regex.c @@ -5495,12 +5495,12 @@ re_comp (s) { re_comp_buf.buffer = (unsigned char *) malloc (200); if (re_comp_buf.buffer == NULL) - return gettext (re_error_msgid[(int) REG_ESPACE]); + return (char *) gettext (re_error_msgid[(int) REG_ESPACE]); re_comp_buf.allocated = 200; re_comp_buf.fastmap = (char *) malloc (1 << BYTEWIDTH); if (re_comp_buf.fastmap == NULL) - return gettext (re_error_msgid[(int) REG_ESPACE]); + return (char *) gettext (re_error_msgid[(int) REG_ESPACE]); } /* Since `re_exec' always passes NULL for the `regs' argument, we