mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-17 22:31:12 +01:00
44176: warn only if off_t is longer than long
This commit is contained in:
parent
5ca680c93c
commit
52f3266bd0
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
2019-03-25 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||
|
||||
* 44176: Src/Modules/zftp.c: warn only if off_t is longer than long
|
||||
|
||||
* Wesley Schwengle: 44162 (tweaked): Src/Modules/zftp.c: Avoid
|
||||
format-overflow warning by using ztrftime()
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue