aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2008-05-14 19:51:24 +0000
committerDaniel P. Berrange <berrange@redhat.com>2008-05-14 19:51:24 +0000
commit1d73398e8f0f7cdd21da96c15e43386ed85660b4 (patch)
tree81139a05f3bbcb5a616eea882f9187a481256211 /tests/xml2sexprtest.c
parentavoid "not a string literal..." warnings (diff)
downloadlibvirt-1d73398e8f0f7cdd21da96c15e43386ed85660b4.tar.gz
libvirt-1d73398e8f0f7cdd21da96c15e43386ed85660b4.tar.bz2
libvirt-1d73398e8f0f7cdd21da96c15e43386ed85660b4.zip
Remove all use of strcmp, strncmp in favour of STREQ, STREQLEN, STRPREFIX
Diffstat (limited to 'tests/xml2sexprtest.c')
-rw-r--r--tests/xml2sexprtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/xml2sexprtest.c b/tests/xml2sexprtest.c
index 547c66f84..b2bb05d1f 100644
--- a/tests/xml2sexprtest.c
+++ b/tests/xml2sexprtest.c
@@ -43,7 +43,7 @@ static int testCompareFiles(const char *xml, const char *sexpr,
goto fail;
}
- if (strcmp(name, gotname)) {
+ if (STRNEQ(name, gotname)) {
printf("Got wrong name: expected %s, got %s\n", name, gotname);
goto fail;
}