diff --git a/include/ncoffsets.h b/include/ncoffsets.h index ca107969c..87dfd550b 100644 --- a/include/ncoffsets.h +++ b/include/ncoffsets.h @@ -7,7 +7,7 @@ #define NCOFFSETS_H 1 typedef struct Alignment { - char* typename; + char* type_name; unsigned int alignment; } Alignment; diff --git a/libdispatch/doffsets.c b/libdispatch/doffsets.c index 996b3c6fd..4d6078f02 100644 --- a/libdispatch/doffsets.c +++ b/libdispatch/doffsets.c @@ -87,7 +87,7 @@ all compilers seem to mimic the gcc rules. #define COMP_ALIGNMENT(DST,TYPE) {\ struct {char f1; TYPE x;} tmp; \ - DST.typename = #TYPE ; \ + DST.type_name = #TYPE ; \ DST.alignment = (size_t)((char*)(&(tmp.x)) - (char*)(&tmp));} #if 0 @@ -186,7 +186,7 @@ compute_alignments(void) */ #define COMP_ALIGNMENT1(DST,TYPE1,TYPE) {\ struct {TYPE1 f1; TYPE x;} tmp; \ - DST.typename = #TYPE ; \ + DST.type_name = #TYPE ; \ DST.alignment = (size_t)((char*)(&(tmp.x)) - (char*)(&tmp));} /* Compute the alignment of TYPE when it is preceded @@ -194,7 +194,7 @@ compute_alignments(void) */ #define COMP_ALIGNMENT2(DST,TYPE1,TYPE2,TYPE) {\ struct {TYPE1 f1, TYPE2 f2; TYPE x;} tmp; \ - DST.typename = #TYPE ; \ + DST.type_name = #TYPE ; \ DST.alignment = (size_t)((char*)(&(tmp.x)) - (char*)(&tmp));} /* Compute the alignment of TYPE when it is preceded @@ -301,15 +301,15 @@ verify(Typealignvec* vec) for(i=0;i