From 72b2cb613a57918dadf9722c59a30ca71d751c8e Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 9 May 2006 21:23:51 +0000 Subject: 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. --- tools/vgscan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/vgscan.c') diff --git a/tools/vgscan.c b/tools/vgscan.c index c020a12c..de2c106b 100644 --- a/tools/vgscan.c +++ b/tools/vgscan.c @@ -16,7 +16,8 @@ #include "tools.h" static int vgscan_single(struct cmd_context *cmd, const char *vg_name, - struct volume_group *vg, int consistent, void *handle) + struct volume_group *vg, int consistent, + void *handle __attribute((unused))) { if (!vg) { log_error("Volume group \"%s\" not found", vg_name); -- cgit