Mercurial > gftp.yaz
diff lib/gftp.h @ 926:7b5aa0420fe2
2007-6-13 Brian Masney <masneyb@gftp.org>
* lib/misc.c (insert_commas) lib/gftp.h - explictly cast the number to
a long long if it is supported on the system. This fixes a problem
where the number is converted to an integer when the sizeof (off_t) !=
sizeof (long long)
author | masneyb |
---|---|
date | Thu, 14 Jun 2007 02:06:41 +0000 |
parents | 936635b76f02 |
children | 5b681cba67b2 |
line wrap: on
line diff
--- a/lib/gftp.h Sat Jun 09 11:50:40 2007 +0000 +++ b/lib/gftp.h Thu Jun 14 02:06:41 2007 +0000 @@ -167,12 +167,14 @@ #define GFTP_OFF_T_PRINTF_MOD "%lld" #define GFTP_OFF_T_11PRINTF_MOD "%11lld" #define gftp_parse_file_size(str) strtoll (str, NULL, 10) +#define GFTP_OFF_T_PRINTF_CONVERSION long long #else #define GFTP_OFF_T_HEX_PRINTF_MOD "%lx" #define GFTP_OFF_T_INTL_PRINTF_MOD "%'ld" #define GFTP_OFF_T_PRINTF_MOD "%ld" #define GFTP_OFF_T_11PRINTF_MOD "%11ld" #define gftp_parse_file_size(str) strtol (str, NULL, 10) +#define GFTP_OFF_T_PRINTF_CONVERSION off_t #endif /* Server types (used by FTP protocol from SYST command) */