浏览代码

fixed (blindly, hopefully correctly) signed/unsigned incompatibilites

Jiri Kuthan 23 年之前
父节点
当前提交
04813d1439
共有 4 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      modules/tm/t_msgbuilder.c
  2. 1 1
      modules/tm/t_msgbuilder.h
  3. 1 1
      modules/tm/t_reply.c
  4. 1 1
      modules/tm/t_reply.h

+ 1 - 1
modules/tm/t_msgbuilder.c

@@ -169,7 +169,7 @@ error:
 
 char *build_uac_request(  str msg_type, str dst, str from,
     	str headers, str body, int branch, 
-		struct cell *t, int *len)
+		struct cell *t, unsigned int *len)
 {
 	char *via;
 	unsigned int via_len;

+ 1 - 1
modules/tm/t_msgbuilder.h

@@ -75,7 +75,7 @@ char *build_local(struct cell *Trans, unsigned int branch,
 
 char *build_uac_request(  str msg_type, str dst, str from,
 	str headers, str body, int branch,
-	struct cell *t, int *len);
+	struct cell *t, unsigned int *len);
 
 int t_calc_branch(struct cell *t,
 	int b, char *branch, int *branch_len);

+ 1 - 1
modules/tm/t_reply.c

@@ -803,7 +803,7 @@ enum rps t_should_relay_response( struct cell *Trans , int new_code,
 }
 
 char *build_ack(struct sip_msg* rpl,struct cell *trans,int branch,
-	int *ret_len)
+	unsigned int *ret_len)
 {
 	str to;
 

+ 1 - 1
modules/tm/t_reply.h

@@ -104,7 +104,7 @@ void set_final_timer( /* struct s_table *h_table,*/ struct cell *t );
 void cleanup_uac_timers( struct cell *t );
 
 char *build_ack( struct sip_msg* rpl, struct cell *trans, int branch ,
-	int *ret_len);
+	unsigned int *ret_len);
 
 void on_negative_reply( struct cell* t, struct sip_msg* msg,
 	int code, void *param  );