config: rename parse_logsize to be more generic
Rename config_parse_logsize to config_parse_bytesize.
A more generic name allows this function to be reused in other
config parsing purposes.
Change-Id: I3036c184669be17ddc0d194f275ea05d871341d1
Signed-off-by: Medicine Yeh <medicinehy@gmail.com>
diff --git a/config.c b/config.c
index 3b8aef9..5f5edaf 100644
--- a/config.c
+++ b/config.c
@@ -276,7 +276,7 @@
return 0;
}
-int config_parse_logsize(const char *size_str, size_t *size)
+int config_parse_bytesize(const char *size_str, size_t *size)
{
struct size_suffix_shift {
/* Left shiftwidth corresponding to the suffix. */