diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-09 14:30:11 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-09 22:34:16 +0100 |
commit | 9a8889e4d0c532b9f77af3a9cc7aae06adebfb83 (patch) | |
tree | e2d7910ea5b028ed2628b8006f209eea843458e5 /daemon/xattr.c | |
parent | 3e70b34eed5a48640e20fbf6dcba774aaace1f3c (diff) | |
download | libguestfs-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 '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 d16939fc..926baf03 100644 --- a/daemon/xattr.c +++ b/daemon/xattr.c @@ -410,7 +410,7 @@ do_lxattrlist (const char *path, char *const *names) fprintf (stderr, " %zu: special attrval = %s\n", k, entry[0].attrval.attrval_val); for (i = 1; k+i < ret->guestfs_int_xattr_list_len; ++i) { - if (strcmp (entry[i].attrname, "") == 0) + if (STREQ (entry[i].attrname, "")) break; fprintf (stderr, " name %s, value length %d\n", entry[i].attrname, entry[i].attrval.attrval_len); |