mirror of
https://github.com/mirror/wget.git
synced 2026-09-06 06:34:56 +08:00
Remove SIZEOF_WGINT as wgint is always int64_t
* src/http.c (test_parse_range_header): Remove use of SIZEOF_WGINT. * src/utils.c (human_readable): Remove superfluous HR_NUMTYPE, * (number_to_string): Remove use of SIZEOF_WGINT. * src/utils.h: Remove use of SIZEOF_WGINT and HR_NUMTYPE. * src/wget.h: Remove #define SIZEOF_WGINT.
This commit is contained in:
10
src/utils.h
10
src/utils.h
@@ -122,14 +122,8 @@ void free_keys_and_values (struct hash_table *);
|
||||
const char *with_thousand_seps (wgint);
|
||||
|
||||
/* human_readable must be able to accept wgint and SUM_SIZE_INT
|
||||
arguments. On machines where wgint is 32-bit, declare it to accept
|
||||
double. */
|
||||
#if SIZEOF_WGINT >= 8
|
||||
# define HR_NUMTYPE wgint
|
||||
#else
|
||||
# define HR_NUMTYPE double
|
||||
#endif
|
||||
char *human_readable (HR_NUMTYPE, const int, const int);
|
||||
arguments. */
|
||||
char *human_readable (wgint, const int, const int);
|
||||
|
||||
|
||||
int numdigit (wgint);
|
||||
|
||||
Reference in New Issue
Block a user