diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-06-12 21:02:49 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-06-12 21:39:11 -0500 |
commit | b08c403815fee2e436e06946cad59cb0499ff3e9 (patch) | |
tree | 117dcca4e1122980fb7603e97d189ffd83147323 /src | |
parent | 9b9365ffae46b8708d1a96545ec934fd735426b4 (diff) | |
download | ofono-b08c403815fee2e436e06946cad59cb0499ff3e9.tar.bz2 |
Make SCTS to time function const-correct
Diffstat (limited to 'src')
-rw-r--r-- | src/smsutil.c | 2 | ||||
-rw-r--r-- | src/smsutil.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/smsutil.c b/src/smsutil.c index 03d910ac..abf64195 100644 --- a/src/smsutil.c +++ b/src/smsutil.c @@ -1602,7 +1602,7 @@ gboolean sms_udh_iter_next(struct sms_udh_iter *iter) /* Returns both forms of time. The time_t value returns the time in local * timezone. The struct tm is filled out with the remote time information */ -time_t sms_scts_to_time(struct sms_scts *scts, struct tm *remote) +time_t sms_scts_to_time(const struct sms_scts *scts, struct tm *remote) { struct tm t; time_t ret; diff --git a/src/smsutil.h b/src/smsutil.h index 3fd401e3..caf4ab43 100644 --- a/src/smsutil.h +++ b/src/smsutil.h @@ -329,7 +329,7 @@ gboolean sms_encode(const struct sms *in, int *len, int *tpdu_len, int sms_udl_in_bytes(guint8 ud_len, guint8 dcs); -time_t sms_scts_to_time(struct sms_scts *scts, struct tm *remote); +time_t sms_scts_to_time(const struct sms_scts *scts, struct tm *remote); gboolean sms_udh_iter_init(const struct sms *sms, struct sms_udh_iter *iter); enum sms_iei sms_udh_iter_get_ie_type(struct sms_udh_iter *iter); |