Use enum for perform_update() return code. Made function protected
[bpdyndnsd] / src / service.cpp
index e798a1d..1bab19b 100644 (file)
@@ -280,7 +280,7 @@ void Service::update(const string& ip, const time_t current_time, bool changed_t
     {
         Log->print_update_service(service_name);
 
-        if ( perform_update(ip) == 0 )
+        if ( perform_update(ip) == UpdateOk )
         {
             // if update was successful, we need to set the Lastupdated and ActualIP base member.
             set_last_update(current_time,ip);