diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-09 14:26:21 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-09 22:34:16 +0100 |
commit | 3e70b34eed5a48640e20fbf6dcba774aaace1f3c (patch) | |
tree | 5bb681d85d8ff394f562b095e70c36d4ac5f7b5d /test-tool/test-tool.c | |
parent | 627f89351d06e43564b47ea42cabaa522284c2a1 (diff) | |
download | libguestfs-3e70b34eed5a48640e20fbf6dcba774aaace1f3c.tar.gz libguestfs-3e70b34eed5a48640e20fbf6dcba774aaace1f3c.tar.xz libguestfs-3e70b34eed5a48640e20fbf6dcba774aaace1f3c.zip |
change strncmp() == 0 to STREQLEN()
git grep -l 'strncmp *([^=]*== *0'|xargs \
perl -pi -e 's/\bstrncmp( *\(.*?\)) *== *0\b/STREQLEN$1/g'
Diffstat (limited to 'test-tool/test-tool.c')
-rw-r--r-- | test-tool/test-tool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-tool/test-tool.c b/test-tool/test-tool.c index c1a3de7c..8a80f66d 100644 --- a/test-tool/test-tool.c +++ b/test-tool/test-tool.c @@ -145,7 +145,7 @@ main (int argc, char *argv[]) /* Print out any environment variables which may relate to this test. */ for (i = 0; environ[i] != NULL; ++i) - if (strncmp (environ[i], "LIBGUESTFS_", 11) == 0) + if (STREQLEN (environ[i], "LIBGUESTFS_", 11)) printf ("%s\n", environ[i]); /* Create the handle and configure it. */ |