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/ext2.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/ext2.c')
-rw-r--r-- | daemon/ext2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/ext2.c b/daemon/ext2.c index 14cbb3c9..f768440d 100644 --- a/daemon/ext2.c +++ b/daemon/ext2.c @@ -78,9 +78,9 @@ do_tune2fs_l (const char *device) free (out); return NULL; } - if (strcmp (colon, "<none>") == 0 || - strcmp (colon, "<not available>") == 0 || - strcmp (colon, "(none)") == 0) { + if (STREQ (colon, "<none>") || + STREQ (colon, "<not available>") || + STREQ (colon, "(none)")) { if (add_string (&ret, &size, &alloc, "") == -1) { free (out); return NULL; |