Commit 95212eba authored by Sebastien Decugis's avatar Sebastien Decugis
Browse files

Fix a couple of compilation warnings

parent dae1e949
......@@ -446,7 +446,7 @@ static int sip_rad_req( struct rgwp_config * cs, struct session ** session, stru
int len;
/* Create a new Session-Id. The format is: {fqdn;hi32;lo32;username;diamid} */
CHECK_MALLOC( sid = malloc(un_len + 1 /* ';' */ + fd_g_config->cnf_diamid_len + 1 /* '\0' */) );
len = sprintf(sid, "%.*s;%s", un_len, un, fd_g_config->cnf_diamid);
len = sprintf(sid, "%.*s;%s", (int)un_len, un, fd_g_config->cnf_diamid);
CHECK_FCT( fd_sess_new(session, fqdn, sid, len) );
free(sid);
}
......
......@@ -144,9 +144,9 @@ static int rtereg_out(void * cbdata, struct msg * msg, struct fd_list * candidat
struct avp_hdr * ahdr = NULL;
CHECK_FCT( fd_msg_avp_hdr ( avp, &ahdr ) );
if (ahdr->avp_value != NULL) {
#ifndef HAVE_REG_STARTEND
int ret;
#ifndef HAVE_REG_STARTEND
/* Lock the buffer */
CHECK_POSIX( pthread_mutex_lock(&mtx) );
......@@ -167,7 +167,7 @@ static int rtereg_out(void * cbdata, struct msg * msg, struct fd_list * candidat
CHECK_FCT(ret);
#else /* HAVE_REG_STARTEND */
CHECK_FCT( proceed(ahdr->avp_value->os.data, ahdr->avp_value->os.len, candidates) );
CHECK_FCT( proceed((char *) ahdr->avp_value->os.data, ahdr->avp_value->os.len, candidates) );
#endif /* HAVE_REG_STARTEND */
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment