Browse code

fixed some "signedness" warnings

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1726 689a6050-402a-0410-94f2-e92a70836424

Elias Baixas authored on 01/03/2007 17:37:52
Showing 2 changed files
... ...
@@ -164,7 +164,7 @@ int encode_header(struct sip_msg *sipmsg,struct hdr_field *hdr,unsigned char *pa
164 164
 	    }
165 165
 	    hdr->parsed=(void*)(long)integer;
166 166
 	 }
167
-	 if((len=encode_contentlength(hdr->name.s,hdr->len,(long int)hdr->parsed,payload+5))<0){
167
+	 if((len=encode_contentlength(hdr->name.s,hdr->len,(long int)hdr->parsed,(char*)(payload+5)))<0){
168 168
 	    myerror="encoding content-length header\n";
169 169
 	    goto error;
170 170
 	 }else{
... ...
@@ -197,7 +197,7 @@ int encode_header(struct sip_msg *sipmsg,struct hdr_field *hdr,unsigned char *pa
197 197
 	       return 5;
198 198
 	    }
199 199
 	 }
200
-	 if((len=encode_accept(hdr->name.s,hdr->len,(unsigned int*)hdr->parsed,payload+5))<0){
200
+	 if((len=encode_accept(hdr->name.s,hdr->len,(unsigned int*)hdr->parsed,(char*)(payload+5)))<0){
201 201
 	    myerror="encoding via header\n";
202 202
 	    goto error;
203 203
 	 }else{
... ...
@@ -211,7 +211,7 @@ int encode_header(struct sip_msg *sipmsg,struct hdr_field *hdr,unsigned char *pa
211 211
 	       goto error;
212 212
 	    }
213 213
 	 }
214
-	 if((len=encode_content_type(hdr->name.s,hdr->len,(unsigned int)hdr->parsed,payload+5))<0){
214
+	 if((len=encode_content_type(hdr->name.s,hdr->len,(unsigned int)hdr->parsed,(char*)(payload+5)))<0){
215 215
 	    myerror="encoding via header\n";
216 216
 	    goto error;
217 217
 	 }else{
... ...
@@ -267,7 +267,7 @@ int encode_header(struct sip_msg *sipmsg,struct hdr_field *hdr,unsigned char *pa
267 267
 	    }
268 268
 	    hdr->parsed=methods;
269 269
 	 }
270
-	 if((len=encode_allow(hdr->name.s,hdr->len,(unsigned int*)hdr->parsed,payload+5))<0){
270
+	 if((len=encode_allow(hdr->name.s,hdr->len,(unsigned int*)hdr->parsed,(char*)(payload+5)))<0){
271 271
 	    myerror="encoding allow header\n";
272 272
 	    goto error;
273 273
 	 }else{
... ...
@@ -58,7 +58,6 @@ extern int process_no;
58 58
 
59 59
 static inline int shm_str_dup(str* _d, str* _s);
60 60
 static inline struct sip_msg *parse_ac_msg(hdr_flags_t flags,char *start,int len);
61
-static inline void set_process_no();
62 61
 static inline void free_sip_msg_lite(struct sip_msg *my_msg);
63 62
 static inline int calculate_hooks(dlg_t* _d);
64 63