Added linter settings.
authorBjoern Sikora <bjoern.sikora@intra2net.com>
Mon, 7 Jun 2010 15:05:13 +0000 (17:05 +0200)
committerBjoern Sikora <bjoern.sikora@intra2net.com>
Mon, 7 Jun 2010 15:05:13 +0000 (17:05 +0200)
src/logger.cpp
src/main.cpp

index d6b4f6b..1c8e6fe 100644 (file)
@@ -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)
 {
index f4fbc66..03a2554 100644 (file)
@@ -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