summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2014-03-08 21:27:37 +0100
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2014-03-12 21:24:49 +0400
commitdbdfe4a0e64273060f104bb630ea5ea3a9e9711e (patch)
tree68594351a028bb73a43b4a163de0d774d1fcd8ab
parent0a37874a7e53d7054c7e05c7ad791fdd5b581f10 (diff)
db,sms: Rename db_sms_mark_sent() to db_sms_mark_delivered(), as that's what it does.
-rw-r--r--openbsc/include/openbsc/db.h2
-rw-r--r--openbsc/src/libmsc/db.c4
-rw-r--r--openbsc/src/libmsc/gsm_04_11.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/include/openbsc/db.h b/openbsc/include/openbsc/db.h
index a89c22d54..29c6b42b8 100644
--- a/openbsc/include/openbsc/db.h
+++ b/openbsc/include/openbsc/db.h
@@ -63,7 +63,7 @@ struct gsm_sms *db_sms_get(struct gsm_network *net, unsigned long long id);
struct gsm_sms *db_sms_get_unsent(struct gsm_network *net, unsigned long long min_id);
struct gsm_sms *db_sms_get_unsent_by_subscr(struct gsm_network *net, unsigned long long min_subscr_id, unsigned int failed);
struct gsm_sms *db_sms_get_unsent_for_subscr(struct gsm_subscriber *subscr);
-int db_sms_mark_sent(struct gsm_sms *sms);
+int db_sms_mark_delivered(struct gsm_sms *sms);
int db_sms_inc_deliver_attempts(struct gsm_sms *sms);
/* APDU blob storage */
diff --git a/openbsc/src/libmsc/db.c b/openbsc/src/libmsc/db.c
index c1207ed9f..4808af7ec 100644
--- a/openbsc/src/libmsc/db.c
+++ b/openbsc/src/libmsc/db.c
@@ -1489,8 +1489,8 @@ struct gsm_sms *db_sms_get_unsent_for_subscr(struct gsm_subscriber *subscr)
return sms;
}
-/* mark a given SMS as read */
-int db_sms_mark_sent(struct gsm_sms *sms)
+/* mark a given SMS as delivered */
+int db_sms_mark_delivered(struct gsm_sms *sms)
{
dbi_result result;
diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index 15b17c3ae..10c144d29 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -554,7 +554,7 @@ static int gsm411_rx_rp_ack(struct msgb *msg, struct gsm_trans *trans,
}
/* mark this SMS as sent in database */
- db_sms_mark_sent(sms);
+ db_sms_mark_delivered(sms);
send_signal(S_SMS_DELIVERED, trans, sms, 0);