Mercurial > hg > freeDiameter
changeset 136:abd3c441780b
Fix 64 bits warnings
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 16 Dec 2009 16:51:42 +0900 |
parents | bbb8ddba4c85 |
children | 5510f73e1737 |
files | freeDiameter/cnxctx.c freeDiameter/p_cnx.c freeDiameter/p_out.c freeDiameter/p_psm.c libfreeDiameter/sessions.c |
diffstat | 5 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/freeDiameter/cnxctx.c Wed Dec 16 14:44:56 2009 +0900 +++ b/freeDiameter/cnxctx.c Wed Dec 16 16:51:42 2009 +0900 @@ -1015,7 +1015,7 @@ #endif /* DISABLE_SCTP */ } else { /* Set the socket info in the session */ - gnutls_transport_set_ptr (conn->cc_tls_para.session, (gnutls_transport_ptr_t) conn->cc_socket); + gnutls_transport_set_ptr (conn->cc_tls_para.session, (gnutls_transport_ptr_t) (long) conn->cc_socket); } /* Handshake master session */
--- a/freeDiameter/p_cnx.c Wed Dec 16 14:44:56 2009 +0900 +++ b/freeDiameter/p_cnx.c Wed Dec 16 16:51:42 2009 +0900 @@ -203,7 +203,7 @@ /* Set the thread name */ { char buf[48]; - sprintf(buf, "ConnTo:%.*s", sizeof(buf) - 8, peer->p_hdr.info.pi_diamid); + sprintf(buf, "ConnTo:%.*s", (int)(sizeof(buf)) - 8, peer->p_hdr.info.pi_diamid); fd_log_threadname ( buf ); }
--- a/freeDiameter/p_out.c Wed Dec 16 14:44:56 2009 +0900 +++ b/freeDiameter/p_out.c Wed Dec 16 16:51:42 2009 +0900 @@ -102,7 +102,7 @@ /* Set the thread name */ { char buf[48]; - sprintf(buf, "OUT/%.*s", sizeof(buf) - 5, peer->p_hdr.info.pi_diamid); + sprintf(buf, "OUT/%.*s", (int)sizeof(buf) - 5, peer->p_hdr.info.pi_diamid); fd_log_threadname ( buf ); }
--- a/freeDiameter/p_psm.c Wed Dec 16 14:44:56 2009 +0900 +++ b/freeDiameter/p_psm.c Wed Dec 16 16:51:42 2009 +0900 @@ -298,7 +298,7 @@ /* Set the thread name */ { char buf[48]; - sprintf(buf, "PSM/%.*s", sizeof(buf) - 5, peer->p_hdr.info.pi_diamid); + sprintf(buf, "PSM/%.*s", (int)sizeof(buf) - 5, peer->p_hdr.info.pi_diamid); fd_log_threadname ( buf ); }
--- a/libfreeDiameter/sessions.c Wed Dec 16 14:44:56 2009 +0900 +++ b/libfreeDiameter/sessions.c Wed Dec 16 16:51:42 2009 +0900 @@ -359,7 +359,7 @@ if (opt) { if (optlen) - sidlen = snprintf(sid, sidlen, "%s;%u;%u;%.*s", diamId, sid_h, sid_l, optlen, opt); + sidlen = snprintf(sid, sidlen, "%s;%u;%u;%.*s", diamId, sid_h, sid_l, (int)optlen, opt); else sidlen = snprintf(sid, sidlen, "%s;%u;%u;%s", diamId, sid_h, sid_l, opt); } else {