aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/x509if
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-02 14:51:04 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-02 14:51:04 +0000
commit9991973c373321fd7903a552f06dcb3ff576ad1f (patch)
treed0566a8853d835782e92c96d527ea1a382f9df09 /asn1/x509if
parent240af26981370328011b319f570b10bc4f61f4a7 (diff)
Use explicit casts.
svn path=/trunk/; revision=48008
Diffstat (limited to 'asn1/x509if')
-rw-r--r--asn1/x509if/x509if.cnf12
1 files changed, 6 insertions, 6 deletions
diff --git a/asn1/x509if/x509if.cnf b/asn1/x509if/x509if.cnf
index 7a2cf78e46..68a0cb7cb9 100644
--- a/asn1/x509if/x509if.cnf
+++ b/asn1/x509if/x509if.cnf
@@ -212,7 +212,7 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
if((fmt = val_to_str(hf_index, fmt_vals, "")) && *fmt) {
/* we have a format */
- last_ava = ep_alloc(MAX_AVA_STR_LEN); *last_ava = '\0';
+ last_ava = (char *)ep_alloc(MAX_AVA_STR_LEN); *last_ava = '\0';
register_frame_end_routine (actx->pinfo, x509if_frame_end);
g_snprintf(last_ava, MAX_AVA_STR_LEN, "%%s %%s", name, fmt);
@@ -257,7 +257,7 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
/* we have a format */
if (!last_ava) {
- last_ava = ep_alloc(MAX_AVA_STR_LEN);
+ last_ava = (char *)ep_alloc(MAX_AVA_STR_LEN);
}
if(!(name = oid_resolved_from_string(object_identifier_id)))
@@ -334,7 +334,7 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
rdn_one_value = FALSE;
top_of_rdn = tree;
- last_rdn = ep_alloc(MAX_DN_STR_LEN); *last_rdn = '\0';
+ last_rdn = (char *)ep_alloc(MAX_DN_STR_LEN); *last_rdn = '\0';
register_frame_end_routine (actx->pinfo, x509if_frame_end);
%(DEFAULT_BODY)s
@@ -345,7 +345,7 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
/* now append this to the DN */
if (last_dn) {
if(*last_dn) {
- temp_dn = ep_alloc(MAX_DN_STR_LEN); /* is there a better way to use ep_alloc here ? */
+ temp_dn = (char *)ep_alloc(MAX_DN_STR_LEN); /* is there a better way to use ep_alloc here ? */
g_snprintf(temp_dn, MAX_DN_STR_LEN, "%%s,%%s", last_rdn, last_dn);
last_dn[0] = '\0';
g_strlcat(last_dn, temp_dn, MAX_DN_STR_LEN);
@@ -375,7 +375,7 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
const char *fmt;
dn_one_rdn = FALSE; /* reset */
- last_dn = ep_alloc(MAX_DN_STR_LEN); *last_dn = '\0';
+ last_dn = (char *)ep_alloc(MAX_DN_STR_LEN); *last_dn = '\0';
top_of_dn = NULL;
register_frame_end_routine (actx->pinfo, x509if_frame_end);
@@ -407,7 +407,7 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
#.FN_BODY AttributeValueAssertion
ava_hf_index = hf_index;
- last_ava = ep_alloc(MAX_AVA_STR_LEN); *last_ava = '\0';
+ last_ava = (char *)ep_alloc(MAX_AVA_STR_LEN); *last_ava = '\0';
register_frame_end_routine (actx->pinfo, x509if_frame_end);
%(DEFAULT_BODY)s