Mercurial > hg > freeDiameter
changeset 584:15b59f928383
Fix a couple of compilation warnings
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Thu, 28 Oct 2010 13:17:01 +0900 |
parents | 7d431a751d6c |
children | 4d7872860080 |
files | extensions/app_radgw/rgwx_sip.c extensions/rt_ereg/rtereg.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/app_radgw/rgwx_sip.c Thu Oct 28 12:59:03 2010 +0900 +++ b/extensions/app_radgw/rgwx_sip.c Thu Oct 28 13:17:01 2010 +0900 @@ -446,7 +446,7 @@ 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); }
--- a/extensions/rt_ereg/rtereg.c Thu Oct 28 12:59:03 2010 +0900 +++ b/extensions/rt_ereg/rtereg.c Thu Oct 28 13:17:01 2010 +0900 @@ -144,9 +144,9 @@ 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 @@ 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 */ } }