浏览代码

smsops: cast to unsigned long, related to commit a61e04757d5f

Henning Westerholt 6 年之前
父节点
当前提交
074c7ce165
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/modules/smsops/smsops_impl.c

+ 2 - 2
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", (long)sizeof(struct _sms_rp_data));
+				LM_ERR("Error allocating %lu bytes!\n", (unsigned 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", (long)sizeof(struct _sms_rp_data));
+			LM_ERR("Error allocating %lu bytes!\n", (unsigned long)sizeof(struct _sms_rp_data));
 			return -1;
 		}
 		// Initialize structure: