summaryrefslogtreecommitdiff
path: root/tools/segtypes.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2006-05-09 21:23:51 +0000
committerAlasdair Kergon <agk@redhat.com>2006-05-09 21:23:51 +0000
commit72b2cb613a57918dadf9722c59a30ca71d751c8e (patch)
treeae0130e37b873591370abd65ff44cb2a554db049 /tools/segtypes.c
parentb810c547004a98a7fc25c8dde65cf88d82ad9652 (diff)
downloadlvm2-72b2cb613a57918dadf9722c59a30ca71d751c8e.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 'tools/segtypes.c')
-rw-r--r--tools/segtypes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/segtypes.c b/tools/segtypes.c
index 1ba9d5ffd..ca93bdc6a 100644
--- a/tools/segtypes.c
+++ b/tools/segtypes.c
@@ -15,7 +15,8 @@
#include "tools.h"
-int segtypes(struct cmd_context *cmd, int argc, char **argv)
+int segtypes(struct cmd_context *cmd, int argc __attribute((unused)),
+ char **argv __attribute((unused)))
{
display_segtypes(cmd);