From: Jim Meyering Date: Sun, 28 May 2000 16:27:56 +0000 (+0000) Subject: (AC_FUNC_STRERROR_R): Call strerror_r with 2nd arg X-Git-Tag: autoconf-2.50~841 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d425b4c2489c7bf442aa5b058fbbf7cf67daa53;p=thirdparty%2Fautoconf.git (AC_FUNC_STRERROR_R): Call strerror_r with 2nd arg of type char*, not int. Suggestion from Paul Eggert. --- diff --git a/acspecific.m4 b/acspecific.m4 index 2739fd357..19814cd39 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -1663,8 +1663,8 @@ if test $ac_cv_func_strerror_r = yes; then # endif ], [ - int buf; /* avoiding square brackets makes this easier */ - char x = *strerror_r (0, buf, sizeof buf); + char buf; + char x = *strerror_r (0, &buf, sizeof buf); ], ac_cv_func_strerror_r_works=yes, ac_cv_func_strerror_r_works=no diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 2739fd357..19814cd39 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -1663,8 +1663,8 @@ if test $ac_cv_func_strerror_r = yes; then # endif ], [ - int buf; /* avoiding square brackets makes this easier */ - char x = *strerror_r (0, buf, sizeof buf); + char buf; + char x = *strerror_r (0, &buf, sizeof buf); ], ac_cv_func_strerror_r_works=yes, ac_cv_func_strerror_r_works=no