Module: kamailio
Branch: master
Commit: a61e04757d5fbc6d756fed6339495e809258dc1e
URL:
https://github.com/kamailio/kamailio/commit/a61e04757d5fbc6d756fed6339495e8…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-25T14:20:24+02:00
smsops: fix compile warning, size_t is unsigned int on 32 bit architectures
---
Modified: src/modules/smsops/smsops_impl.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a61e04757d5fbc6d756fed6339495e8…
Patch:
https://github.com/kamailio/kamailio/commit/a61e04757d5fbc6d756fed6339495e8…
---
diff --git a/src/modules/smsops/smsops_impl.c b/src/modules/smsops/smsops_impl.c
index 8df667bb77..be341b13f3 100644
--- a/src/modules/smsops/smsops_impl.c
+++ b/src/modules/smsops/smsops_impl.c
@@ -469,7 +469,7 @@ int decode_3gpp_sms(struct sip_msg *msg) {
if (!rp_data) {
rp_data = (sms_rp_data_t*)pkg_malloc(sizeof(struct _sms_rp_data));
if (!rp_data) {
- LM_ERR("Error allocating %lu bytes!\n", sizeof(struct _sms_rp_data));
+ LM_ERR("Error allocating %lu bytes!\n", (long)sizeof(struct
_sms_rp_data));
return -1;
}
} else {
@@ -846,7 +846,7 @@ int pv_set_sms(struct sip_msg* msg, pv_param_t *param, int op,
pv_value_t *val)
if (!rp_send_data) {
rp_send_data = (sms_rp_data_t*)pkg_malloc(sizeof(struct _sms_rp_data));
if (!rp_send_data) {
- LM_ERR("Error allocating %lu bytes!\n", sizeof(struct _sms_rp_data));
+ LM_ERR("Error allocating %lu bytes!\n", (long)sizeof(struct _sms_rp_data));
return -1;
}
// Initialize structure: