aboutsummaryrefslogtreecommitdiff
path: root/qemu-io.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-07-31 21:16:51 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-07-31 21:16:51 +0000
commit660f11be541813be5f09fbaf44d8e7c6d5a5bbfe (patch)
tree1d133bdfc69d11fe81e769825adf3f680ee2f91e /qemu-io.c
parent2e29bd04786003561303dcad940b38afe790fb9b (diff)
downloadqemu-660f11be541813be5f09fbaf44d8e7c6d5a5bbfe.zip
qemu-660f11be541813be5f09fbaf44d8e7c6d5a5bbfe.tar.gz
qemu-660f11be541813be5f09fbaf44d8e7c6d5a5bbfe.tar.bz2
Fix Sparse warnings: "Using plain integer as NULL pointer"
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-io.c')
-rw-r--r--qemu-io.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/qemu-io.c b/qemu-io.c
index 029ee0b..a68f195 100644
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -1414,17 +1414,17 @@ int main(int argc, char **argv)
int growable = 0;
const char *sopt = "hVc:Crsnmg";
struct option lopt[] = {
- { "help", 0, 0, 'h' },
- { "version", 0, 0, 'V' },
- { "offset", 1, 0, 'o' },
- { "cmd", 1, 0, 'c' },
- { "create", 0, 0, 'C' },
- { "read-only", 0, 0, 'r' },
- { "snapshot", 0, 0, 's' },
- { "nocache", 0, 0, 'n' },
- { "misalign", 0, 0, 'm' },
- { "growable", 0, 0, 'g' },
- { NULL, 0, 0, 0 }
+ { "help", 0, NULL, 'h' },
+ { "version", 0, NULL, 'V' },
+ { "offset", 1, NULL, 'o' },
+ { "cmd", 1, NULL, 'c' },
+ { "create", 0, NULL, 'C' },
+ { "read-only", 0, NULL, 'r' },
+ { "snapshot", 0, NULL, 's' },
+ { "nocache", 0, NULL, 'n' },
+ { "misalign", 0, NULL, 'm' },
+ { "growable", 0, NULL, 'g' },
+ { NULL, 0, NULL, 0 }
};
int c;
int opt_index = 0;