From 85310bd7a586097969edee42b72586a43b061c01 Mon Sep 17 00:00:00 2001 From: andrej Date: Fri, 9 Dec 2022 12:15:55 +0100 Subject: [PATCH] Revert "interfaces-plugin: change state name set return for NULL name" This reverts commit d55c8cae6773e263311ab64fd3a13319fb4a470d. --- src/interfaces/src/plugin/data/interfaces/interface_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/src/plugin/data/interfaces/interface_state.c b/src/interfaces/src/plugin/data/interfaces/interface_state.c index 850875a3..426dff94 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface_state.c +++ b/src/interfaces/src/plugin/data/interfaces/interface_state.c @@ -71,7 +71,7 @@ int interfaces_interface_state_hash_element_set_name(interfaces_interface_state_ return (*el)->state.name == NULL; } - return -1; + return 0; } void interfaces_interface_state_hash_element_set_state(interfaces_interface_state_hash_element_t** el, const uint8_t state)