summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sms.c b/src/sms.c
index 0c71ef47..9cb7a404 100644
--- a/src/sms.c
+++ b/src/sms.c
@@ -294,7 +294,7 @@ static void tx_finished(const struct ofono_error *error, int mr, void *data)
if (error->type != OFONO_ERROR_TYPE_NO_ERROR) {
ofono_debug("Sending failed, retrying in 5 seconds...");
- g_timeout_add_seconds(5, tx_next, data);
+ g_timeout_add_seconds(5, tx_next, modem);
return;
}
@@ -305,7 +305,7 @@ static void tx_finished(const struct ofono_error *error, int mr, void *data)
if (g_queue_peek_head(sms->txq)) {
ofono_debug("Scheduling next");
- g_timeout_add(0, tx_next, sms);
+ g_timeout_add(0, tx_next, modem);
}
}