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:
Tim Rühsen
2020-12-29 13:39:52 +01:00
parent a16149e5bb
commit 7ec15b9c92
4 changed files with 3 additions and 28 deletions

View File

@@ -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);