diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-07 09:38:37 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-17 11:40:24 +0200 |
commit | adf20c0c4d9f488d55254f54a79079b9cacbde8d (patch) | |
tree | ccaaabb111532bf270df87a8a960dd8271481103 /daemon/sfdisk.c | |
parent | 2ad9dbbe595b5311019376a55b13db0d7c5d8988 (diff) | |
download | libguestfs-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/sfdisk.c')
-rw-r--r-- | daemon/sfdisk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/daemon/sfdisk.c b/daemon/sfdisk.c index 8a5a46b0..6d49387a 100644 --- a/daemon/sfdisk.c +++ b/daemon/sfdisk.c @@ -32,7 +32,7 @@ static int sfdisk (const char *device, int n, int cyls, int heads, int sectors, const char *extra_flag, - char * const* const lines) + char *const *lines) { FILE *fp; char buf[256]; @@ -96,7 +96,7 @@ 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 **lines) + char *const *lines) { return sfdisk (device, 0, cyls, heads, sectors, NULL, lines); } @@ -105,13 +105,13 @@ int do_sfdisk_N (const char *device, int n, int cyls, int heads, int sectors, const char *line) { - const char *lines[2] = { line, NULL }; + char const *const lines[2] = { line, NULL }; - return sfdisk (device, n, cyls, heads, sectors, NULL, lines); + return sfdisk (device, n, cyls, heads, sectors, NULL, (void *) lines); } int -do_sfdiskM (const char *device, char **lines) +do_sfdiskM (const char *device, char *const *lines) { return sfdisk (device, 0, 0, 0, 0, "-uM", lines); } |