summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-01-24 16:12:41 +0000
committerGreg Hudson <ghudson@mit.edu>2012-01-24 16:12:41 +0000
commit9d693ea198116b4bc699891444588877bcd9a30c (patch)
treecd439654b81ea8ecb3ff84e7b845dcaac2063dba /src
parentfde815444b60dffd16b2fcd14953c1f928991d59 (diff)
downloadkrb5-9d693ea198116b4bc699891444588877bcd9a30c.tar.gz
krb5-9d693ea198116b4bc699891444588877bcd9a30c.tar.xz
krb5-9d693ea198116b4bc699891444588877bcd9a30c.zip
Avoid sizeof(void) in ASN.1 encoder
We were computing sizeof(void) when referencing atype_int_immediate types in other types (primarily atype_tagged_thing). gcc gives this a pass but the Solaris compiler does not. Use "int" as the dummy type instead. (The type is unimportant since int-immediates aren't used by offset or sequence-of types.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25658 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/asn.1/asn1_encode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/asn.1/asn1_encode.h b/src/lib/krb5/asn.1/asn1_encode.h
index 4f302fee1..c68b3832f 100644
--- a/src/lib/krb5/asn.1/asn1_encode.h
+++ b/src/lib/krb5/asn.1/asn1_encode.h
@@ -340,7 +340,7 @@ struct choice_info {
atype_uint, sizeof(CTYPENAME), NULL \
}
#define DEFINT_IMMEDIATE(DESCNAME, VAL) \
- typedef void aux_typedefname_##DESCNAME; \
+ typedef int aux_typedefname_##DESCNAME; \
static const int aux_int_##DESCNAME = VAL; \
const struct atype_info k5_atype_##DESCNAME = { \
atype_int_immediate, 0, &aux_int_##DESCNAME \