Fixed return Type to avoid potential error in application
[platform/core/api/connection.git] / src / libnetwork.c
index 3b8bc92..a439d6b 100755 (executable)
@@ -554,7 +554,7 @@ int _connection_libnet_get_ethernet_state(connection_ethernet_state_e* state)
 
        if (ethernet_profiles.count == 0) {
                state = CONNECTION_ETHERNET_STATE_DEACTIVATED;
-               return true;
+               return CONNECTION_ERROR_NONE;
        }
 
        switch (ethernet_profiles.profiles->ProfileState) {