Convert humansize() to accept a size_t instead of a double
General convention is to use size_t to store sizes of all kinds. Internally, the function uses double anyway, but at least this doesn't clobber up the API any more and there's a chance in the future to make this function a bit cleaner and not use this dirty static buffer hack any more.
This commit is contained in:
2
util.h
2
util.h
@@ -66,7 +66,7 @@ int eregcomp(regex_t *, const char *, int);
|
||||
void enmasse(int, char **, int (*)(const char *, const char *, int));
|
||||
void fnck(const char *, const char *, int (*)(const char *, const char *, int), int);
|
||||
mode_t getumask(void);
|
||||
char *humansize(double);
|
||||
char *humansize(size_t);
|
||||
mode_t parsemode(const char *, mode_t, mode_t);
|
||||
void putword(FILE *, const char *);
|
||||
#undef strtonum
|
||||
|
Reference in New Issue
Block a user