Mercurial > hg > freeDiameter
changeset 765:edbdb35a603f
Fix a few compilation warning, some are still remaining
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 18 Oct 2011 23:11:11 +0200 |
parents | f53e5b5fdfd3 |
children | 734bf3e1487b |
files | libfdcore/p_cnx.c libfdproto/messages.c libfdproto/msg_log.c |
diffstat | 3 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libfdcore/p_cnx.c Tue Oct 18 23:00:51 2011 +0200 +++ b/libfdcore/p_cnx.c Tue Oct 18 23:11:11 2011 +0200 @@ -250,7 +250,7 @@ break; #ifndef DISABLE_SCTP case IPPROTO_SCTP: - cnx = fd_cnx_cli_connect_sctp((peer->p_hdr.info.config.pic_flags.pro3 == PI_P3_IP) ?: fd_g_config->cnf_flags.no_ip6, + cnx = fd_cnx_cli_connect_sctp((peer->p_hdr.info.config.pic_flags.pro3 == PI_P3_IP) ? 1 : fd_g_config->cnf_flags.no_ip6, nc->port, &peer->p_hdr.info.pi_endpoints); break; #endif /* DISABLE_SCTP */
--- a/libfdproto/messages.c Tue Oct 18 23:00:51 2011 +0200 +++ b/libfdproto/messages.c Tue Oct 18 23:11:11 2011 +0200 @@ -712,7 +712,6 @@ static void obj_dump_avp ( struct avp * avp, int indent, FILE * fstr ) { int ret = 0; - enum dict_avp_basetype type = -1; if (!CHECK_AVP(avp)) { fd_log_debug_fstr(fstr, INOBJHDR "INVALID!\n", INOBJHDRVAL); @@ -743,7 +742,6 @@ type_base_name[dictdata.avp_basetype], dictdata.avp_code, dictdata.avp_name ); - type = dictdata.avp_basetype; } public: fd_log_debug_fstr(fstr, INOBJHDR "public: C:%u fl:" DUMP_AVPFL_str " L:%d V:%u data:@%p\n", INOBJHDRVAL,
--- a/libfdproto/msg_log.c Tue Oct 18 23:00:51 2011 +0200 +++ b/libfdproto/msg_log.c Tue Oct 18 23:11:11 2011 +0200 @@ -149,6 +149,7 @@ case FD_MSG_LOGTO_FILE: TODO("Log to arg file"); TODO("Log a note to debug stream"); + TRACE_DEBUG(INFO, "%s", metharg); break; case FD_MSG_LOGTO_DIR: TODO("Log to arg directory in a new file");