From 706b299e1e5bb7658c1a9a26eae4e277027ce731 Mon Sep 17 00:00:00 2001 From: Mickey Lane Date: Thu, 23 Jul 2009 09:20:27 -0400 Subject: [PATCH] Update Windows strcmpi call This POSIX function is deprecated beginning in Visual C++ 2005 Change to _stricmp instead This change affects 4 calls in 3 Windows only files. Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/188 Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/WINNT/afsd/cm_ioctl.c | 2 +- src/WINNT/client_config/cellservdb.c | 2 +- src/auth/ktc_nt.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WINNT/afsd/cm_ioctl.c b/src/WINNT/afsd/cm_ioctl.c index 251107b5d..495d239a7 100644 --- a/src/WINNT/afsd/cm_ioctl.c +++ b/src/WINNT/afsd/cm_ioctl.c @@ -372,7 +372,7 @@ void cm_NormalizeAfsPathAscii(char *outpathp, long outlen, char *inpathp) outpathp[strlen(outpathp)-1] = 0; } - if (!strcmpi (outpathp, cm_mountRoot)) { + if (!_stricmp (outpathp, cm_mountRoot)) { StringCbCopy(outpathp, outlen, cm_mountRoot); } } diff --git a/src/WINNT/client_config/cellservdb.c b/src/WINNT/client_config/cellservdb.c index 9a2222b28..55d472c9b 100644 --- a/src/WINNT/client_config/cellservdb.c +++ b/src/WINNT/client_config/cellservdb.c @@ -277,7 +277,7 @@ PCELLDBLINE CSDB_FindCell (PCELLSERVDB pCellServDB, const char *pszCell) CELLDBLINEINFO Info; if (!CSDB_CrackLine (&Info, pLine->szLine)) continue; - if (!strcmpi (Info.szCell, pszCell)) + if (!_stricmp (Info.szCell, pszCell)) return pLine; } return NULL; diff --git a/src/auth/ktc_nt.c b/src/auth/ktc_nt.c index cee731459..6c046f2d2 100644 --- a/src/auth/ktc_nt.c +++ b/src/auth/ktc_nt.c @@ -111,7 +111,7 @@ send_key(afs_uuid_t uuid, char sessionKey[8]) /* Encryption on by default */ if (GetEnvironmentVariable("AFS_RPC_ENCRYPT", encrypt, sizeof(encrypt))) - if (!strcmpi(encrypt, "OFF")) + if (!_stricmp(encrypt, "OFF")) encryptionOff = TRUE; /* Protocol sequence is local by default */ @@ -184,7 +184,7 @@ receive_key(afs_uuid_t uuid, char sessionKey[8]) /* Encryption on by default */ if (GetEnvironmentVariable("AFS_RPC_ENCRYPT", encrypt, sizeof(encrypt))) - if (!strcmpi(encrypt, "OFF")) + if (!_stricmp(encrypt, "OFF")) encryptionOff = TRUE; /* Protocol sequence is local by default */ -- 2.39.5