Mercurial > hg > freeDiameter
comparison extensions/rt_ignore_dh/rt_ignore_dh.c @ 1284:38e4a7c318ac
Fix a number of compilation warnings
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sun, 04 Jan 2015 00:55:57 +0800 |
parents | 34265c9c1e94 |
children |
comparison
equal
deleted
inserted
replaced
1283:f09f16f432e6 | 1284:38e4a7c318ac |
---|---|
135 CHECK_FCT(fd_msg_avp_hdr(avp, &ahdr)); | 135 CHECK_FCT(fd_msg_avp_hdr(avp, &ahdr)); |
136 if (ahdr->avp_value != NULL) { | 136 if (ahdr->avp_value != NULL) { |
137 /* add Proxy-Info->{Proxy-Host, Proxy-State} using Destination-Host information */ | 137 /* add Proxy-Info->{Proxy-Host, Proxy-State} using Destination-Host information */ |
138 CHECK_FCT(fd_msg_avp_new(ph_avp_do, 0, &ph_avp)); | 138 CHECK_FCT(fd_msg_avp_new(ph_avp_do, 0, &ph_avp)); |
139 memset(&val, 0, sizeof(val)); | 139 memset(&val, 0, sizeof(val)); |
140 val.os.data = fd_g_config->cnf_diamid; | 140 val.os.data = (uint8_t *)(fd_g_config->cnf_diamid); |
141 val.os.len = fd_g_config->cnf_diamid_len; | 141 val.os.len = fd_g_config->cnf_diamid_len; |
142 CHECK_FCT(fd_msg_avp_setvalue(ph_avp, &val)); | 142 CHECK_FCT(fd_msg_avp_setvalue(ph_avp, &val)); |
143 | 143 |
144 CHECK_FCT(fd_msg_avp_new(ps_avp_do, 0, &ps_avp)); | 144 CHECK_FCT(fd_msg_avp_new(ps_avp_do, 0, &ps_avp)); |
145 memset(&val, 0, sizeof(val)); | 145 memset(&val, 0, sizeof(val)); |