summaryrefslogtreecommitdiffstats
path: root/ircxmpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ircxmpp.c')
-rw-r--r--ircxmpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ircxmpp.c b/ircxmpp.c
index 302d164..a7b6a44 100644
--- a/ircxmpp.c
+++ b/ircxmpp.c
@@ -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);
}