diff options
author | Rob Landley <rob@landley.net> | 2015-09-06 20:10:04 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-09-06 20:10:04 -0500 |
commit | 960100aa9cb588a73125d43ec0b0a7152a95b43f (patch) | |
tree | 8a33efdad74bc2ecf36efaed1b3089101a9a6102 /lib/lib.h | |
parent | 60d1aea2df9a8cc1e975ed5fee079982612f5966 (diff) | |
download | toybox-960100aa9cb588a73125d43ec0b0a7152a95b43f.tar.gz |
Switch HR_SI to HR_1000, make binary the default, make HR_B only affect bytes,
and update the tests.
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -176,13 +176,13 @@ void delete_tempfile(int fdin, int fdout, char **tempname); void replace_tempfile(int fdin, int fdout, char **tempname); void crc_init(unsigned int *crc_table, int little_endian); void base64_init(char *p); -int yesno(char *prompt, int def); +int yesno(int def); int qstrcmp(const void *a, const void *b); int xpoll(struct pollfd *fds, int nfds, int timeout); -#define HR_SPACE 1 -#define HR_B 2 -#define HR_SI 4 +#define HR_SPACE 1 // Space between number and units +#define HR_B 2 // Use "B" for single byte units +#define HR_1000 4 // Use decimal instead of binary units int human_readable(char *buf, unsigned long long num, int style); // interestingtimes.c |