X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fish%2Ffish.c;h=3f534defcbd58c952215fe2616df01d8f8d86bfd;hp=869366bee7c7b62c4c0bd4d05330ee48ef49d9bc;hb=15821057d4729d8bb369af3a230e717af5563abb;hpb=9a8889e4d0c532b9f77af3a9cc7aae06adebfb83 diff --git a/fish/fish.c b/fish/fish.c index 869366b..3f534de 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -762,7 +762,7 @@ cmdline (char *argv[], int optind, int argc) params = &argv[optind]; /* Search for end of command list or ":" ... */ - while (optind < argc && strcmp (argv[optind], ":") != 0) + while (optind < argc && STRNEQ (argv[optind], ":")) optind++; if (optind == argc) { @@ -1340,7 +1340,7 @@ resolve_win_path (const char *path) char *ret; size_t i; - if (strncasecmp (path, "win:", 4) != 0) { + if (STRCASENEQLEN (path, "win:", 4)) { ret = strdup (path); if (ret == NULL) perror ("strdup"); @@ -1350,7 +1350,7 @@ resolve_win_path (const char *path) path += 4; /* Drop drive letter, if it's "C:". */ - if (strncasecmp (path, "c:", 2) == 0) + if (STRCASEEQLEN (path, "c:", 2)) path += 2; if (!*path) {