From: Paul Eggert Date: Mon, 4 Oct 2004 21:00:42 +0000 (+0000) Subject: * regex.c (re_comp): Cast gettext return value to char *, X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=204752ccb7a3585ab19600dcc45fa8ca1e055084;p=pspp * regex.c (re_comp): Cast gettext return value to char *, --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 90e7f08698..a1b601c279 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2004-10-04 Paul Eggert + + * regex.c (re_comp): Cast gettext return value to char *, + Problem reported by Martin Neitzel via Mark D. Baushke. + 2004-10-04 Simon Josefsson * error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of diff --git a/lib/regex.c b/lib/regex.c index 0f7fef8835..d3840704a0 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -7909,7 +7909,7 @@ re_comp (const char *s) if (!s) { if (!re_comp_buf.buffer) - return gettext ("No previous regular expression"); + return (char *) gettext ("No previous regular expression"); return 0; }