X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fftp.c;h=9d4344a8b9e57420d55f9a33932f7a91c9738716;hp=38f439fb1f4ecc666629f1c6dec216834c21bae0;hb=5ef1d7b949abfce3a363a1170746e6cd1f950486;hpb=bd3028f1cda5715066a984983d3a44195b7a32e3 diff --git a/src/ftp.c b/src/ftp.c index 38f439fb..9d4344a8 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -2050,8 +2050,22 @@ ftp_retrieve_glob (struct url *u, ccon *con, int action) } else if (action == GLOB_GETONE) { +#ifdef __VMS + /* 2009-09-09 SMS. + * Odd-ball compiler ("HP C V7.3-009 on OpenVMS Alpha V7.3-2") + * bug causes spurious %CC-E-BADCONDIT complaint with this + * "?:" statement. (Different linkage attributes for strcmp() + * and strcasecmp().) Converting to "if" changes the + * complaint to %CC-W-PTRMISMATCH on "cmp = strcmp;". Adding + * the senseless type cast clears the complaint, and looks + * harmless. + */ + int (*cmp) (const char *, const char *) + = opt.ignore_case ? strcasecmp : (int (*)())strcmp; +#else /* def __VMS */ int (*cmp) (const char *, const char *) = opt.ignore_case ? strcasecmp : strcmp; +#endif /* def __VMS [else] */ f = start; while (f) {