aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2021-10-17 18:24:06 -0700
committerTrumeet <yuuta@yuuta.moe>2021-10-17 18:24:06 -0700
commit0b3b5a48c42047731b3388f14a2aeb92f19d572c (patch)
treed1ca1b693956e1732227b8329bbd6a1c17f23a07
parentada179664032e5a2eee74cb81f75bb9ab0771dbb (diff)
downloadeasy-tg-0b3b5a48c42047731b3388f14a2aeb92f19d572c.tar
easy-tg-0b3b5a48c42047731b3388f14a2aeb92f19d572c.tar.gz
easy-tg-0b3b5a48c42047731b3388f14a2aeb92f19d572c.tar.bz2
easy-tg-0b3b5a48c42047731b3388f14a2aeb92f19d572c.zip
don't pass json_object in update handlers
-rw-r--r--easy-tg.c6
1 files 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;