chiark / gitweb /
Prep v228: Condense elogind source masks (4/5)
[elogind.git] / src / basic / parse-util.h
index 7dac7670d05a072f4bb4915b8fa7e8b675275eb9..6706a29cc245e000c03aa1be71bb5b4516bc380a 100644 (file)
@@ -34,10 +34,13 @@ int parse_mode(const char *s, mode_t *ret);
 int parse_ifindex(const char *s, int *ret);
 
 int parse_size(const char *t, uint64_t base, uint64_t *size);
-// UNNEEDED int parse_range(const char *t, unsigned *lower, unsigned *upper);
 
-// UNNEEDED #define FORMAT_BYTES_MAX 8
-// UNNEEDED char *format_bytes(char *buf, size_t l, uint64_t t);
+#if 0 /// UNNEEDED by elogind
+int parse_range(const char *t, unsigned *lower, unsigned *upper);
+
+#define FORMAT_BYTES_MAX 8
+char *format_bytes(char *buf, size_t l, uint64_t t);
+#endif // 0
 
 int safe_atou(const char *s, unsigned *ret_u);
 int safe_atoi(const char *s, int *ret_i);