From 0b3b5a48c42047731b3388f14a2aeb92f19d572c Mon Sep 17 00:00:00 2001 From: Trumeet Date: Sun, 17 Oct 2021 18:24:06 -0700 Subject: don't pass json_object in update handlers --- easy-tg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easy-tg.c b/easy-tg.c index b98d927..e25f931 100644 --- a/easy-tg.c +++ b/easy-tg.c @@ -310,11 +310,11 @@ int tg_loop() goto cleanup; tg_update_type = json_object_get_string(obj); if(!strcmp(tg_update_type, "updateAuthorizationState")) - r = handle_update_authorization_state(tg_update); + r = handle_update_authorization_state(); else if(!strcmp(tg_update_type, "error")) - r = handle_update_error(tg_update); + r = handle_update_error(); else if(!strcmp(tg_update_type, "updateConnectionState")) - r = handle_update_connection_state(tg_update); + r = handle_update_connection_state(); else r = TG_RUN; goto cleanup; -- cgit v1.2.3