roken: Fix parse_flags() orig argument type

This commit is contained in:
Nicolas Williams
2022-04-25 16:35:28 -05:00
parent 642990620c
commit 13611702f9
2 changed files with 3 additions and 4 deletions

View File

@@ -275,8 +275,7 @@ acc_flags(uint64_t res, int64_t val, uint64_t mult)
} }
ROKEN_LIB_FUNCTION uint64_t ROKEN_LIB_CALL ROKEN_LIB_FUNCTION uint64_t ROKEN_LIB_CALL
parse_flags (const char *s, const struct units *units, parse_flags(const char *s, const struct units *units, uint64_t orig)
int orig)
{ {
return parse_something_unsigned (s, units, NULL, acc_flags, orig, 1); return parse_something_unsigned (s, units, NULL, acc_flags, orig, 1);
} }

View File

@@ -98,7 +98,7 @@ print_units_table (const struct units *units, FILE *f);
ROKEN_LIB_FUNCTION uint64_t ROKEN_LIB_CALL ROKEN_LIB_FUNCTION uint64_t ROKEN_LIB_CALL
parse_flags(const char *s, const struct units *units, parse_flags(const char *s, const struct units *units,
int orig); uint64_t orig);
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
unparse_units(int64_t num, const struct units *units, char *s, size_t len); unparse_units(int64_t num, const struct units *units, char *s, size_t len);