1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 10:51:48 +02:00

build: tail: avoid type/format mismatch warning from gcc

Without this change, gcc's -Werror=format would complain that
the '%lx' format requires 'long unsigned int', not 'int'.
* src/tail.c (fremote): Use a temporary variable.
This commit is contained in:
Jim Meyering
2012-01-02 21:28:15 +01:00
parent 794e52b7bd
commit 3a189ae0ce

View File

@@ -903,10 +903,13 @@ fremote (int fd, const char *name)
case 0:
break;
case -1:
error (0, 0, _("unrecognized file system type 0x%08lx for %s. "
"please report this to %s. reverting to polling"),
buf.f_type, quote (name), PACKAGE_BUGREPORT);
/* Treat as "remote", so caller polls. */
{
unsigned long int fs_type = buf.f_type;
error (0, 0, _("unrecognized file system type 0x%08lx for %s. "
"please report this to %s. reverting to polling"),
fs_type, quote (name), PACKAGE_BUGREPORT);
/* Treat as "remote", so caller polls. */
}
break;
case 1:
remote = false;