diff --git a/src/error.c b/src/error.c index db34ea5..3506aa6 100644 --- a/src/error.c +++ b/src/error.c @@ -32,7 +32,7 @@ void patty_error_clear(patty_error *e) { e->state = PATTY_ERROR_OK; } -int patty_error_isset(patty_error *e) { +int patty_error_set(patty_error *e) { return e->state == PATTY_ERROR_SET? 1: 0; }