|
@@ -263,7 +263,7 @@ int parse_content_type_hdr( struct sip_msg *msg )
|
|
{
|
|
{
|
|
char *end;
|
|
char *end;
|
|
char *ret;
|
|
char *ret;
|
|
- int mime;
|
|
|
|
|
|
+ unsigned int mime;
|
|
|
|
|
|
/* is the header already found? */
|
|
/* is the header already found? */
|
|
if ( msg->content_type==0 ) {
|
|
if ( msg->content_type==0 ) {
|
|
@@ -297,7 +297,7 @@ int parse_content_type_hdr( struct sip_msg *msg )
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
|
|
|
|
- msg->content_type->parsed = (void*)(long)mime;
|
|
|
|
|
|
+ msg->content_type->parsed = (void*)(unsigned long)mime;
|
|
return mime;
|
|
return mime;
|
|
|
|
|
|
error:
|
|
error:
|
|
@@ -311,9 +311,9 @@ error:
|
|
* = -1 error */
|
|
* = -1 error */
|
|
int parse_accept_hdr( struct sip_msg *msg )
|
|
int parse_accept_hdr( struct sip_msg *msg )
|
|
{
|
|
{
|
|
- static int mimes[MAX_MIMES_NR];
|
|
|
|
|
|
+ static unsigned int mimes[MAX_MIMES_NR];
|
|
int nr_mimes;
|
|
int nr_mimes;
|
|
- int mime;
|
|
|
|
|
|
+ unsigned int mime;
|
|
char *end;
|
|
char *end;
|
|
char *ret;
|
|
char *ret;
|
|
|
|
|