* lib/ptsname_r.c (__ptsname_r): Reduce the scope of variable 'err'.
+2020-12-28 Bruno Haible <bruno@clisp.org>
+
+ ptsname_r: Fix a compiler warning on Solaris.
+ * lib/ptsname_r.c (__ptsname_r): Reduce the scope of variable 'err'.
+
2020-12-28 Bruno Haible <bruno@clisp.org>
gnulib-tool: Fix logic whether to add a dummy.c.
return errno;
#else
int save_errno = errno;
- int err;
struct stat st;
if (buf == NULL)
return ERANGE;
}
- err = __ttyname_r (fd, buf, buflen);
+ int err = __ttyname_r (fd, buf, buflen);
if (err != 0)
{
__set_errno (err);