diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-04-30 21:39:05 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-04-30 21:39:05 +0200 |
commit | 8cd7251b7f0da3f82b552b0cf737b6047f8f3a53 (patch) | |
tree | c317d896618d673cafbeb2533f0987b0ca5a33aa /ircxmpp.c | |
parent | 0.0.4 (diff) | |
download | ircxmpp-0.0.5.tar ircxmpp-0.0.5.tar.gz ircxmpp-0.0.5.tar.bz2 ircxmpp-0.0.5.tar.lz ircxmpp-0.0.5.tar.xz ircxmpp-0.0.5.tar.zst ircxmpp-0.0.5.zip |
Diffstat (limited to 'ircxmpp.c')
-rw-r--r-- | ircxmpp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -70,7 +70,7 @@ static void free_bridge (struct bridge * bridge, const char * razlog) { if (bridge->conn) xmpp_conn_release(bridge->conn); // graceful disconnect, what is that? if (strcmp(razlog, "free_bridge_from_tdestroy")) - tdelete(bridge, bridge->ircxmpp->bridges, bridge_compare); + tdelete(bridge, &bridge->ircxmpp->bridges, bridge_compare); free(bridge->identifier); for (size_t i = 0; i < bridge->messages_length; i++) free(bridge->messages[i]); @@ -775,7 +775,7 @@ int main (void) { ircxmpp_run_once(handles[i]); struct timespec ts = { .tv_sec = 0, - .tv_nsec = getenv("IX_LOOPDELAY") ? atoi(getenv("IX_LOOPDELAY"))/1000 : 1e8 + .tv_nsec = getenv("IX_LOOPDELAY") ? atoi(getenv("IX_LOOPDELAY"))/1000 : 1e7 }; nanosleep(&ts, NULL); } |