[lvm-devel] [PATCH 1/2] Fix compile warnings
Thomas Woerner
twoerner at redhat.com
Mon Jul 20 16:23:47 UTC 2009
Fix compile warnings of an api test case.
---
test/api/vgcreate.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/api/vgcreate.c b/test/api/vgcreate.c
index c09e7a8..d2b089b 100644
--- a/test/api/vgcreate.c
+++ b/test/api/vgcreate.c
@@ -23,8 +23,8 @@
lvm_t handle;
vg_t *vg;
-char *vg_name = "my_vg";
-char *device = "/dev/loop3";
+const char *vg_name = "my_vg";
+const char *device = "/dev/loop3";
uint64_t size = 1024;
int main(int argc, char *argv[])
@@ -55,7 +55,7 @@ int main(int argc, char *argv[])
goto bad;
}
- printf("Setting VG %s extent_size to %d\n", vg_name, size);
+ printf("Setting VG %s extent_size to %ld\n", vg_name, size);
status = lvm_vg_set_extent_size(vg, size);
if (!status) {
fprintf(stderr, "Can not set physical extent "
--
1.6.2.5
More information about the lvm-devel
mailing list