diff options
author | Richard Jones <rjones@redhat.com> | 2009-06-10 11:49:42 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-06-10 14:16:47 +0100 |
commit | 56bef498f46ac3dd580f4bde3c8f3ed2fe688826 (patch) | |
tree | 73bb0d8c5df5ec8c5af905be3283b6beaa2994bc /daemon/sfdisk.c | |
parent | 2df2f2854ed2d1f9857ef3c5aaca29810cf3c506 (diff) | |
download | libguestfs-56bef498f46ac3dd580f4bde3c8f3ed2fe688826.tar.gz libguestfs-56bef498f46ac3dd580f4bde3c8f3ed2fe688826.tar.xz libguestfs-56bef498f46ac3dd580f4bde3c8f3ed2fe688826.zip |
In the daemon, change all const char * parameters to char *.
Diffstat (limited to 'daemon/sfdisk.c')
-rw-r--r-- | daemon/sfdisk.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/daemon/sfdisk.c b/daemon/sfdisk.c index 2f5206ed..95f04af4 100644 --- a/daemon/sfdisk.c +++ b/daemon/sfdisk.c @@ -30,7 +30,7 @@ #include "actions.h" static int -sfdisk (const char *device, int n, int cyls, int heads, int sectors, +sfdisk (char *device, int n, int cyls, int heads, int sectors, char * const* const lines) { FILE *fp; @@ -78,15 +78,15 @@ sfdisk (const char *device, int n, int cyls, int heads, int sectors, } int -do_sfdisk (const char *device, int cyls, int heads, int sectors, - char * const* const lines) +do_sfdisk (char *device, int cyls, int heads, int sectors, + char **lines) { return sfdisk (device, 0, cyls, heads, sectors, lines); } int -do_sfdisk_N (const char *device, int n, int cyls, int heads, int sectors, - const char *line) +do_sfdisk_N (char *device, int n, int cyls, int heads, int sectors, + char *line) { const char *lines[2] = { line, NULL }; @@ -94,7 +94,7 @@ do_sfdisk_N (const char *device, int n, int cyls, int heads, int sectors, } static char * -sfdisk_flag (const char *device, const char *flag) +sfdisk_flag (char *device, const char *flag) { char *out, *err; int r; @@ -115,19 +115,19 @@ sfdisk_flag (const char *device, const char *flag) } char * -do_sfdisk_l (const char *device) +do_sfdisk_l (char *device) { return sfdisk_flag (device, "-l"); } char * -do_sfdisk_kernel_geometry (const char *device) +do_sfdisk_kernel_geometry (char *device) { return sfdisk_flag (device, "-g"); } char * -do_sfdisk_disk_geometry (const char *device) +do_sfdisk_disk_geometry (char *device) { return sfdisk_flag (device, "-G"); } |