diff options
author | Trumeet <yuuta@yuuta.moe> | 2021-10-17 18:24:06 -0700 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2021-10-17 18:24:06 -0700 |
commit | 0b3b5a48c42047731b3388f14a2aeb92f19d572c (patch) | |
tree | d1ca1b693956e1732227b8329bbd6a1c17f23a07 | |
parent | ada179664032e5a2eee74cb81f75bb9ab0771dbb (diff) | |
download | easy-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |