From de5e00b1ccc8f9fdf439aab7ac8de621bd93f3e3 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Sat, 23 May 2020 12:35:30 +0200 Subject: [PATCH] Fix 'occurred' typo --- src/ip_addr_helper.cpp | 2 +- src/logger.cpp | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/ip_addr_helper.cpp b/src/ip_addr_helper.cpp index b0b2a84..fcc3680 100644 --- a/src/ip_addr_helper.cpp +++ b/src/ip_addr_helper.cpp @@ -511,7 +511,7 @@ int IPAddrHelper::perform_curl_operation(CURL * curl_easy_handle, const char* cu CURLcode curl_err_code; if ( (curl_err_code = curl_easy_perform(curl_easy_handle) ) != CURLE_OK ) { - // CURL error occured + // CURL error occurred if ( (curl_err_code == CURLE_COULDNT_CONNECT) || (curl_err_code == CURLE_OPERATION_TIMEOUTED) || (curl_err_code == CURLE_COULDNT_RESOLVE_HOST) ) { // In case of connection problems we should return 1, that the fallback url will be used. diff --git a/src/logger.cpp b/src/logger.cpp index 4775f98..50f7847 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -1350,7 +1350,7 @@ void Logger::print_httphelper_not_initialized() const /** - * A curl error occured. + * A curl error occurred. * @param msg The error message * @param curl_err_code The resulting curl error code */ @@ -1374,7 +1374,7 @@ void Logger::print_curl_error_init(const std::string& err_msg, const CURLcode cu /** - * A curl error occured. + * A curl error occurred. * @param url The url requested by the curl operation * @param curl_err_code The resulting curl error code */ @@ -1402,7 +1402,7 @@ void Logger::print_curl_error(const string& url, const CURLcode curl_err_code) c /** - * A curl error occured. + * A curl error occurred. * @param url The url requested by the curl operation * @param curl_err_code The resulting curl error code * @param curl_err_buff The curl error buffer @@ -1630,8 +1630,8 @@ void Logger::print_gnudip_requires_servername() /** - * An exception occured while computing the md5 sum. - * @param what The exception occured. + * An exception occurred while computing the md5 sum. + * @param what The exception occurred. */ void Logger::print_exception_md5_sum(const string& what) const { @@ -1639,15 +1639,15 @@ void Logger::print_exception_md5_sum(const string& what) const if ( level <= Loglevel ) { ostringstream msg; - msg << "An exception occured while computing a md5 sum: " << what << endl; + msg << "An exception occurred while computing a md5 sum: " << what << endl; log_error(msg.str()); } } /** - * A network exception occured. - * @param what The exception occured. + * A network exception occurred. + * @param what The exception occurred. */ void Logger::print_network_error(const string& what) const { @@ -1655,14 +1655,14 @@ void Logger::print_network_error(const string& what) const if ( level <= Loglevel ) { ostringstream msg; - msg << "A network exception occured: " << what << endl; + msg << "A network exception occurred: " << what << endl; log_error(msg.str()); } } /** - * An undefined protocol error occured. + * An undefined protocol error occurred. * @param protocol The protocol * @param error The error */ @@ -1672,7 +1672,7 @@ void Logger::print_undefined_protocol_error(const string& protocol, const string if ( level <= Loglevel ) { ostringstream msg; - msg << "An undefined protocol error occured. Protocol: " << protocol << " Error: " << error << endl; + msg << "An undefined protocol error occurred. Protocol: " << protocol << " Error: " << error << endl; log_error(msg.str()); } } @@ -1695,7 +1695,7 @@ void Logger::print_error_external_logging(const string& external_prog) const /** * Error while parsing config file. - * @param error Error occured. + * @param error Error occurred. * @param config_file Config file. */ void Logger::print_error_parsing_config_file(const string& filename, const string& error) const -- 1.7.1