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 | 72b2cb613a57918dadf9722c59a30ca71d751c8e (patch) | |
tree | ae0130e37b873591370abd65ff44cb2a554db049 /tools/stub.h | |
parent | b810c547004a98a7fc25c8dde65cf88d82ad9652 (diff) | |
download | lvm2-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/stub.h')
-rw-r--r-- | tools/stub.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/tools/stub.h b/tools/stub.h index 61b0a98e2..e6779217e 100644 --- a/tools/stub.h +++ b/tools/stub.h @@ -14,13 +14,27 @@ */ #define unimplemented \ - { log_error("Command not implemented yet."); return ECMD_FAILED;} + log_error("Command not implemented yet."); return ECMD_FAILED /*int e2fsadm(struct cmd_context *cmd, int argc, char **argv) unimplemented*/ -int lvmsadc(struct cmd_context *cmd, int argc, char **argv) unimplemented -int lvmsar(struct cmd_context *cmd, int argc, char **argv) unimplemented +int lvmsadc(struct cmd_context *cmd __attribute((unused)), + int argc __attribute((unused)), + char **argv __attribute((unused))) +{ + unimplemented; +} + +int lvmsar(struct cmd_context *cmd __attribute((unused)), + int argc __attribute((unused)), + char **argv __attribute((unused))) +{ + unimplemented; +} -int pvdata(struct cmd_context *cmd, int argc, char **argv) { +int pvdata(struct cmd_context *cmd __attribute((unused)), + int argc __attribute((unused)), + char **argv __attribute((unused))) +{ log_error("There's no 'pvdata' command in LVM2."); log_error("Use lvs, pvs, vgs instead; or use vgcfgbackup and read the text file backup."); log_error("Metadata in LVM1 format can still be displayed using LVM1's pvdata command."); |