summaryrefslogtreecommitdiffstats
path: root/daemon/lvm.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-07 09:38:37 +0200
committerJim Meyering <meyering@redhat.com>2009-08-17 11:40:24 +0200
commitadf20c0c4d9f488d55254f54a79079b9cacbde8d (patch)
treeccaaabb111532bf270df87a8a960dd8271481103 /daemon/lvm.c
parent2ad9dbbe595b5311019376a55b13db0d7c5d8988 (diff)
downloadlibguestfs-adf20c0c4d9f488d55254f54a79079b9cacbde8d.tar.gz
libguestfs-adf20c0c4d9f488d55254f54a79079b9cacbde8d.tar.xz
libguestfs-adf20c0c4d9f488d55254f54a79079b9cacbde8d.zip
adjust const "**" pointers to avoid warnings
Also, ... * src/generator.ml: Add DeviceList type, and propagate that change out to all calling/interface code.
Diffstat (limited to 'daemon/lvm.c')
-rw-r--r--daemon/lvm.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/daemon/lvm.c b/daemon/lvm.c
index ddc125c9..742b40ba 100644
--- a/daemon/lvm.c
+++ b/daemon/lvm.c
@@ -192,16 +192,12 @@ do_pvcreate (const char *device)
}
int
-do_vgcreate (const char *volgroup, char **physvols)
+do_vgcreate (const char *volgroup, char *const *physvols)
{
char *err;
int r, argc, i;
const char **argv;
- /* Check they are devices and also do device name translation. */
- for (i = 0; physvols[i] != NULL; ++i)
- RESOLVE_DEVICE (physvols[i], return -1);
-
argc = count_strings (physvols) + 3;
argv = malloc (sizeof (char *) * (argc + 1));
if (argv == NULL) {
@@ -214,7 +210,7 @@ do_vgcreate (const char *volgroup, char **physvols)
for (i = 3; i <= argc; ++i)
argv[i] = physvols[i-3];
- r = commandv (NULL, &err, argv);
+ r = commandv (NULL, &err, (char **) argv);
if (r == -1) {
reply_with_error ("%s", err);
free (err);
@@ -424,7 +420,7 @@ do_pvresize (const char *device)
}
int
-do_vg_activate (int activate, char **volgroups)
+do_vg_activate (int activate, char *const *volgroups)
{
char *err;
int r, i, argc;
@@ -444,7 +440,7 @@ do_vg_activate (int activate, char **volgroups)
for (i = 4; i <= argc; ++i)
argv[i] = volgroups[i-4];
- r = commandv (NULL, &err, argv);
+ r = commandv (NULL, &err, (char **) argv);
if (r == -1) {
reply_with_error ("vgchange: %s", err);
free (err);