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 /fish/rc.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 'fish/rc.c')
-rw-r--r-- | fish/rc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -250,7 +250,7 @@ rc_listen (void) goto error; } - if (strcmp (hello.vers, PACKAGE_VERSION) != 0) { + if (STRNEQ (hello.vers, PACKAGE_VERSION)) { fprintf (stderr, _("guestfish: protocol error: version mismatch, server version '%s' does not match client version '%s'. The two versions must match exactly.\n"), PACKAGE_VERSION, hello.vers); |