From: Bjoern Sikora Date: Mon, 7 Jun 2010 15:05:13 +0000 (+0200) Subject: Added linter settings. X-Git-Tag: v1.1~103 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=43f4565e36c4dc413609119937601140742f0d4c;p=bpdyndnsd Added linter settings. --- diff --git a/src/logger.cpp b/src/logger.cpp index d6b4f6b..1c8e6fe 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -97,7 +97,7 @@ void Logger::log_warning(const string& msg, int level) string message = msg; // Remove endline from msg. if (!message.empty() && message[message.length()-1] == '\n') - message.erase(message.length()-1); + message.erase(message.length()-1); /*lint !e534 */ string external = ExternalWarningLog; external.append(" "); @@ -107,7 +107,7 @@ void Logger::log_warning(const string& msg, int level) if ( system(external.c_str()) != 0 ) print_error_external_logging(external); else - ExternalSendMessages.insert(msg); + ExternalSendMessages.insert(msg); /*lint !e534 */ } } @@ -1301,7 +1301,7 @@ void Logger::print_curl_error(const string& url, const CURLcode curl_err_code, c /** * Prints out the data received by curl operation - * @param CurlWritedataBuff + * @param CurlWritedataBuff */ void Logger::print_curl_data(const string& curl_writedata_buff) const { @@ -1385,7 +1385,7 @@ void Logger::print_update_failure(const string& url, const long http_status_code /** * Hostname is invalid, contains no or only one domain part. - * @param hostname The full qualified host name. + * @param hostname The full qualified host name. */ void Logger::print_invalid_hostname(const string& hostname) { diff --git a/src/main.cpp b/src/main.cpp index f4fbc66..03a2554 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -318,7 +318,7 @@ int main(int argc, char *argv[]) if ( is_online == true ) { // Check if webcheck_enabled differs due to caught singnal then set it in config correspondingly - if ( updater->get_config()->get_webcheck_enabled() != webcheck_enabled ) + if ( updater->get_config()->get_webcheck_enabled() != webcheck_enabled ) /*lint !e731 */ updater->get_config()->set_webcheck_enabled(webcheck_enabled); // update all configured services