summaryrefslogtreecommitdiffstats
path: root/daemon/blockdev.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-06-10 11:49:42 +0100
committerRichard Jones <rjones@redhat.com>2009-06-10 14:16:47 +0100
commit56bef498f46ac3dd580f4bde3c8f3ed2fe688826 (patch)
tree73bb0d8c5df5ec8c5af905be3283b6beaa2994bc /daemon/blockdev.c
parent2df2f2854ed2d1f9857ef3c5aaca29810cf3c506 (diff)
downloadlibguestfs-56bef498f46ac3dd580f4bde3c8f3ed2fe688826.tar.gz
libguestfs-56bef498f46ac3dd580f4bde3c8f3ed2fe688826.tar.xz
libguestfs-56bef498f46ac3dd580f4bde3c8f3ed2fe688826.zip
In the daemon, change all const char * parameters to char *.
Diffstat (limited to 'daemon/blockdev.c')
-rw-r--r--daemon/blockdev.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/daemon/blockdev.c b/daemon/blockdev.c
index 2c075ef8..1b0185a1 100644
--- a/daemon/blockdev.c
+++ b/daemon/blockdev.c
@@ -32,7 +32,7 @@
* we centralize it in one call.
*/
static int64_t
-call_blockdev (const char *device, const char *switc, int extraarg, int prints)
+call_blockdev (char *device, char *switc, int extraarg, int prints)
{
int r;
int64_t rv;
@@ -80,37 +80,37 @@ call_blockdev (const char *device, const char *switc, int extraarg, int prints)
}
int
-do_blockdev_setro (const char *device)
+do_blockdev_setro (char *device)
{
return (int) call_blockdev (device, "--setro", 0, 0);
}
int
-do_blockdev_setrw (const char *device)
+do_blockdev_setrw (char *device)
{
return (int) call_blockdev (device, "--setrw", 0, 0);
}
int
-do_blockdev_getro (const char *device)
+do_blockdev_getro (char *device)
{
return (int) call_blockdev (device, "--getro", 0, 1);
}
int
-do_blockdev_getss (const char *device)
+do_blockdev_getss (char *device)
{
return (int) call_blockdev (device, "--getss", 0, 1);
}
int
-do_blockdev_getbsz (const char *device)
+do_blockdev_getbsz (char *device)
{
return (int) call_blockdev (device, "--getbsz", 0, 1);
}
int
-do_blockdev_setbsz (const char *device, int blocksize)
+do_blockdev_setbsz (char *device, int blocksize)
{
if (blocksize <= 0 /* || blocksize >= what? */) {
reply_with_error ("blockdev_setbsz: blocksize must be > 0");
@@ -120,25 +120,25 @@ do_blockdev_setbsz (const char *device, int blocksize)
}
int64_t
-do_blockdev_getsz (const char *device)
+do_blockdev_getsz (char *device)
{
return call_blockdev (device, "--getsz", 0, 1);
}
int64_t
-do_blockdev_getsize64 (const char *device)
+do_blockdev_getsize64 (char *device)
{
return call_blockdev (device, "--getsize64", 0, 1);
}
int
-do_blockdev_flushbufs (const char *device)
+do_blockdev_flushbufs (char *device)
{
return call_blockdev (device, "--flushbufs", 0, 0);
}
int
-do_blockdev_rereadpt (const char *device)
+do_blockdev_rereadpt (char *device)
{
return call_blockdev (device, "--rereadpt", 0, 0);
}