diff options
author | Alasdair Kergon <agk@redhat.com> | 2006-05-09 21:23:51 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2006-05-09 21:23:51 +0000 |
commit | 45dca55fc8def2804617d58f66e85a7ad60649eb (patch) | |
tree | ae0130e37b873591370abd65ff44cb2a554db049 /lib/display/display.h | |
parent | 445d8ecd9f4afd4f055bc368c73d5ecd22944c4b (diff) | |
download | lvm2-45dca55fc8def2804617d58f66e85a7ad60649eb.tar.gz |
Make SIZE_SHORT the default for display_size().
Fix some memory leaks in error paths found by coverity.
Use C99 struct initialisers.
Move DEFS into configure.h.
Clean-ups to remove miscellaneous compiler warnings.
Diffstat (limited to 'lib/display/display.h')
-rw-r--r-- | lib/display/display.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/display/display.h b/lib/display/display.h index fbd7b2663..2a932d9cd 100644 --- a/lib/display/display.h +++ b/lib/display/display.h @@ -20,12 +20,13 @@ #include <stdint.h> -typedef enum { SIZE_LONG = 0, SIZE_SHORT = 1, SIZE_UNIT = 2 } size_len_t; - uint64_t units_to_bytes(const char *units, char *unit_type); /* Specify size in KB */ -const char *display_size(struct cmd_context *cmd, uint64_t size, size_len_t sl); +const char *display_size(struct cmd_context *cmd, uint64_t size); +const char *display_size_long(struct cmd_context *cmd, uint64_t size); +const char *display_size_units(struct cmd_context *cmd, uint64_t size); + char *display_uuid(char *uuidstr); void display_stripe(const struct lv_segment *seg, uint32_t s, const char *pre); |