summaryrefslogtreecommitdiffstats
path: root/test-tool
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-11-09 14:30:11 +0100
committerJim Meyering <meyering@redhat.com>2009-11-09 22:34:16 +0100
commit9a8889e4d0c532b9f77af3a9cc7aae06adebfb83 (patch)
treee2d7910ea5b028ed2628b8006f209eea843458e5 /test-tool
parent3e70b34eed5a48640e20fbf6dcba774aaace1f3c (diff)
downloadlibguestfs-9a8889e4d0c532b9f77af3a9cc7aae06adebfb83.tar.gz
libguestfs-9a8889e4d0c532b9f77af3a9cc7aae06adebfb83.tar.xz
libguestfs-9a8889e4d0c532b9f77af3a9cc7aae06adebfb83.zip
use STREQ, not strcmp: part 1
git grep -l 'strcmp *([^=]*== *0'|xargs \ perl -pi -e 's/\bstrcmp( *\(.*?\)) *== *0/STREQ$1/g'
Diffstat (limited to 'test-tool')
-rw-r--r--test-tool/test-tool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test-tool/test-tool.c b/test-tool/test-tool.c
index 8a80f66d..73f3af5c 100644
--- a/test-tool/test-tool.c
+++ b/test-tool/test-tool.c
@@ -100,11 +100,11 @@ main (int argc, char *argv[])
switch (c) {
case 0: /* options which are long only */
- if (strcmp (long_options[option_index].name, "helper") == 0)
+ if (STREQ (long_options[option_index].name, "helper"))
helper = optarg;
- else if (strcmp (long_options[option_index].name, "qemu") == 0)
+ else if (STREQ (long_options[option_index].name, "qemu"))
set_qemu (optarg, 0);
- else if (strcmp (long_options[option_index].name, "qemudir") == 0)
+ else if (STREQ (long_options[option_index].name, "qemudir"))
set_qemu (optarg, 1);
else {
fprintf (stderr,