summaryrefslogtreecommitdiff
path: root/src/reducer/anastasis_api_redux.c
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-10-13 13:24:33 +0200
committerFlorian Dold <florian@dold.me>2021-10-13 13:24:33 +0200
commitb37e1bfd281140cd460c1cc300e9467c7f9adf44 (patch)
tree24151a393de55b3bf897d487a3c93853822b61a6 /src/reducer/anastasis_api_redux.c
parent81d0605d6eb59bc3e11261019291b0714466eb6c (diff)
downloadanastasis-b37e1bfd281140cd460c1cc300e9467c7f9adf44.tar.gz
anastasis-b37e1bfd281140cd460c1cc300e9467c7f9adf44.tar.bz2
anastasis-b37e1bfd281140cd460c1cc300e9467c7f9adf44.zip
use invalid state instead of error state
Diffstat (limited to 'src/reducer/anastasis_api_redux.c')
-rw-r--r--src/reducer/anastasis_api_redux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reducer/anastasis_api_redux.c b/src/reducer/anastasis_api_redux.c
index 27b17f8..41bbdda 100644
--- a/src/reducer/anastasis_api_redux.c
+++ b/src/reducer/anastasis_api_redux.c
@@ -282,7 +282,7 @@ ANASTASIS_generic_state_from_string_ (const char *state_string)
if (0 == strcmp (state_string,
generic_strings[i]))
return i;
- return ANASTASIS_GENERIC_STATE_ERROR;
+ return ANASTASIS_GENERIC_STATE_INVALID;
}
@@ -1800,7 +1800,7 @@ ANASTASIS_redux_action (const json_t *state,
"back",
&ANASTASIS_back_generic_decrement_
},
- { ANASTASIS_GENERIC_STATE_ERROR, NULL, NULL }
+ { ANASTASIS_GENERIC_STATE_INVALID, NULL, NULL }
};
bool recovery_mode = false;
const char *s = json_string_value (json_object_get (state,
@@ -1840,7 +1840,7 @@ ANASTASIS_redux_action (const json_t *state,
new_state = json_deep_copy (state);
GNUNET_assert (NULL != new_state);
- if (gs != ANASTASIS_GENERIC_STATE_ERROR)
+ if (gs != ANASTASIS_GENERIC_STATE_INVALID)
{
for (unsigned int i = 0; NULL != dispatchers[i].fun; i++)
{