public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test/api vgcreate.c
@ 2009-07-21 10:41 wysochanski
  0 siblings, 0 replies; only message in thread
From: wysochanski @ 2009-07-21 10:41 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	wysochanski@sourceware.org	2009-07-21 10:41:48

Modified files:
	test/api       : vgcreate.c 

Log message:
	Fix compile warnings in vgcreate liblvm api unit test case.
	
	Use const and PRIu64.
	
	Signed-off-by: Thomas Woerner <twoerner@redhat.com>
	Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
	
	Author: Thomas Woerner <twoerner@redhat.com>
	Committer: Dave Wysochanski <dwysocha@redhat.com>

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/api/vgcreate.c.diff?cvsroot=lvm2&r1=1.1&r2=1.2

--- LVM2/test/api/vgcreate.c	2009/07/14 03:08:56	1.1
+++ LVM2/test/api/vgcreate.c	2009/07/21 10:41:47	1.2
@@ -19,12 +19,13 @@
  */
 #include <stdio.h>
 #include <unistd.h>
+#include <inttypes.h>
 #include "lvm.h"
 
 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,11 +56,11 @@
 		goto bad;
 	}
 
-	printf("Setting VG %s extent_size to %d\n", vg_name, size);
+	printf("Setting VG %s extent_size to %"PRIu64"\n", vg_name, size);
 	status = lvm_vg_set_extent_size(vg, size);
 	if (!status) {
 		fprintf(stderr, "Can not set physical extent "
-			"size '%ld' for '%s'\n",
+			"size '%"PRIu64"' for '%s'\n",
 			size, vg_name);
 		goto bad;
 	}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-21 10:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-21 10:41 LVM2/test/api vgcreate.c wysochanski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).