[26321] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

svn rev #25658: trunk/src/lib/krb5/asn.1/

daemon@ATHENA.MIT.EDU (ghudson@mit.edu)
Tue Jan 24 11:13:08 2012

Date: Tue, 24 Jan 2012 11:12:41 -0500
From: ghudson@mit.edu
Message-Id: <201201241612.q0OGCfAU006440@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

http://src.mit.edu/fisheye/changelog/krb5/?cs=25658
Commit By: ghudson
Log Message:
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.)


Changed Files:
U   trunk/src/lib/krb5/asn.1/asn1_encode.h
Modified: trunk/src/lib/krb5/asn.1/asn1_encode.h
===================================================================
--- trunk/src/lib/krb5/asn.1/asn1_encode.h	2012-01-24 05:52:39 UTC (rev 25657)
+++ trunk/src/lib/krb5/asn.1/asn1_encode.h	2012-01-24 16:12:41 UTC (rev 25658)
@@ -340,7 +340,7 @@
         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     \

_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post