git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change strncmp() == 0 to STREQLEN()
[libguestfs.git]
/
test-tool
/
test-tool.c
diff --git
a/test-tool/test-tool.c
b/test-tool/test-tool.c
index
c1a3de7
..
8a80f66
100644
(file)
--- 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)
/* 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. */
printf ("%s\n", environ[i]);
/* Create the handle and configure it. */