X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Frc.c;h=a9eb5788fc0b9fc4970d81a9cf5af25ce911ff6a;hb=5f9be62e68b120f51c948404e7f0cf3430962c68;hp=182c4f4a3c80d4702532027e1e4fe319ea272b45;hpb=f9071160c1a5fe21a825398a81ba3ca584892a4e;p=libguestfs.git diff --git a/fish/rc.c b/fish/rc.c index 182c4f4..a9eb578 100644 --- a/fish/rc.c +++ b/fish/rc.c @@ -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);