From: Christos Tsantilas Date: Mon, 28 Mar 2011 08:01:07 +0000 (+0300) Subject: Cleanup: global/static function or methods should start from capital letter X-Git-Tag: take06~27^2~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e430bf39d864befdccb4a3d533641f5ac563e63;p=thirdparty%2Fsquid.git Cleanup: global/static function or methods should start from capital letter This patch renames the getErrorName and getErrorDescr to GetErrorName and GetErrorDescr --- diff --git a/src/acl/SslErrorData.cc b/src/acl/SslErrorData.cc index d565253f29..820ed646af 100644 --- a/src/acl/SslErrorData.cc +++ b/src/acl/SslErrorData.cc @@ -40,7 +40,7 @@ ACLSslErrorData::dump() CbDataList *data = values; while (data != NULL) { - wordlistAdd(&W, Ssl::getErrorName(data->element)); + wordlistAdd(&W, Ssl::GetErrorName(data->element)); data = data->next; } @@ -55,7 +55,7 @@ ACLSslErrorData::parse() for (Tail = &values; *Tail; Tail = &((*Tail)->next)); while ((t = strtokFile())) { - CbDataList *q = new CbDataList(Ssl::parseErrorString(t)); + CbDataList *q = new CbDataList(Ssl::ParseErrorString(t)); *(Tail) = q; Tail = &q->next; } diff --git a/src/ssl/ErrorDetail.cc b/src/ssl/ErrorDetail.cc index 15ecd6ea61..5acf8276d3 100644 --- a/src/ssl/ErrorDetail.cc +++ b/src/ssl/ErrorDetail.cc @@ -158,7 +158,7 @@ static void loadSslDetailMap() } Ssl::ssl_error_t -Ssl::parseErrorString(const char *name) +Ssl::ParseErrorString(const char *name) { assert(name); @@ -195,7 +195,7 @@ static const SslErrorDetailEntry *getErrorRecord(Ssl::ssl_error_t value) } const char * -Ssl::getErrorName(Ssl::ssl_error_t value) +Ssl::GetErrorName(Ssl::ssl_error_t value) { if (const SslErrorDetailEntry *errorRecord = getErrorRecord(value)) return errorRecord->name; @@ -320,7 +320,7 @@ const char *Ssl::ErrorDetail::notafter() const const char *Ssl::ErrorDetail::err_code() const { static char tmpBuffer[64]; - const char *err = getErrorName(error_no); + const char *err = GetErrorName(error_no); if (!err) { snprintf(tmpBuffer, 64, "%d", (int)error_no); err = tmpBuffer; diff --git a/src/ssl/ErrorDetail.h b/src/ssl/ErrorDetail.h index 6c8af7b858..4fac73ce03 100644 --- a/src/ssl/ErrorDetail.h +++ b/src/ssl/ErrorDetail.h @@ -24,13 +24,13 @@ typedef int ssl_error_t; \ingroup ServerProtocolSSLAPI * The ssl_error_t representation of the error described by "name". */ -ssl_error_t parseErrorString(const char *name); +ssl_error_t ParseErrorString(const char *name); /** \ingroup ServerProtocolSSLAPI * The string representation of the SSL error "value" */ -const char *getErrorName(ssl_error_t value); +const char *GetErrorName(ssl_error_t value); /** \ingroup ServerProtocolSSLAPI