diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-09 15:03:01 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-09 22:34:16 +0100 |
commit | 539bf7e8983c53c4cf79ffa64302bef1585bec31 (patch) | |
tree | 86393065cadc2b280cafa6956798d87c37740dcd /daemon/xattr.c | |
parent | 9a8889e4d0c532b9f77af3a9cc7aae06adebfb83 (diff) | |
download | libguestfs-539bf7e8983c53c4cf79ffa64302bef1585bec31.tar.gz libguestfs-539bf7e8983c53c4cf79ffa64302bef1585bec31.tar.xz libguestfs-539bf7e8983c53c4cf79ffa64302bef1585bec31.zip |
use STREQ, not strcmp: part 2
git grep -l 'strcmp *([^=]*!= *0'|xargs \
perl -pi -e 's/\bstrcmp( *\(.*?\)) *!= *0\b/STRNEQ$1/g'
Diffstat (limited to 'daemon/xattr.c')
-rw-r--r-- | daemon/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/xattr.c b/daemon/xattr.c index 926baf03..c218dea1 100644 --- a/daemon/xattr.c +++ b/daemon/xattr.c @@ -403,7 +403,7 @@ do_lxattrlist (const char *path, char *const *names) fprintf (stderr, "lxattrlist: returning: [\n"); for (k = 0; k < ret->guestfs_int_xattr_list_len; ++k) { const guestfs_int_xattr *entry = &ret->guestfs_int_xattr_list_val[k]; - if (strcmp (entry[0].attrname, "") != 0) { + if (STRNEQ (entry[0].attrname, "")) { fprintf (stderr, "ERROR: expecting empty attrname at k = %zu\n", k); break; } |