mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
squash some compiler warnings
This commit is contained in:
+3
-3
@@ -65,21 +65,21 @@ unsigned char* CString::strnchr(const unsigned char* src, unsigned char c, unsig
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int CString::CaseCmp(const CString& s, unsigned long uLen) const {
|
||||
int CString::CaseCmp(const CString& s, CString::size_type uLen) const {
|
||||
if (uLen != CString::npos) {
|
||||
return strncasecmp(c_str(), s.c_str(), uLen);
|
||||
}
|
||||
return strcasecmp(c_str(), s.c_str());
|
||||
}
|
||||
|
||||
int CString::StrCmp(const CString& s, unsigned long uLen) const {
|
||||
int CString::StrCmp(const CString& s, CString::size_type uLen) const {
|
||||
if (uLen != CString::npos) {
|
||||
return strncmp(c_str(), s.c_str(), uLen);
|
||||
}
|
||||
return strcmp(c_str(), s.c_str());
|
||||
}
|
||||
|
||||
bool CString::Equals(const CString& s, bool bCaseSensitive, unsigned long uLen) const {
|
||||
bool CString::Equals(const CString& s, bool bCaseSensitive, CString::size_type uLen) const {
|
||||
if (bCaseSensitive) {
|
||||
return (StrCmp(s, uLen) == 0);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user