From 52f3266bd010918122ae039510486131a2c4afe3 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Mon, 25 Mar 2019 23:51:57 +0900 Subject: 44176: warn only if off_t is longer than long --- Src/Modules/zftp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c index adf35b69e..8bebc020d 100644 --- a/Src/Modules/zftp.c +++ b/Src/Modules/zftp.c @@ -2512,7 +2512,8 @@ zftp_local(UNUSED(char *name), char **args, int flags) #ifdef OFF_T_IS_64_BIT printf("%s %s\n", output64(sz), mt); #else - DPUTS(sizeof(sz) > 4, "Shell compiled with wrong off_t size"); + DPUTS(sizeof(sz) > sizeof(long), + "Shell compiled with wrong off_t size"); printf("%ld %s\n", (long)sz, mt); #endif zsfree(mt); -- cgit 1.4.1