X-Git-Url: http://gitweb.hachti.de/?p=h316.git;a=blobdiff_plain;f=pc-tools%2Fldc%2Fhw_types.h;h=e5671157754e8de9e4108c40d518d1abae0c823c;hp=cb79661618c3d202892b27d657286a67d2db93e2;hb=d34afc1e025c289b7454d33504b116a74eb20498;hpb=52147402c19a69c9774bb256420a16233043d3fe diff --git a/pc-tools/ldc/hw_types.h b/pc-tools/ldc/hw_types.h index cb79661..e567115 100644 --- a/pc-tools/ldc/hw_types.h +++ b/pc-tools/ldc/hw_types.h @@ -32,9 +32,9 @@ struct hw16_tape { }; struct hw16_bytes { - unsigned char low __attribute__ ((packed)); - unsigned char high __attribute__ ((packed)); -}; + unsigned char low; + unsigned char high; +} __attribute__((packed)) w; struct hw16_otype { unsigned int space1:6 __attribute__ ((packed)); @@ -149,12 +149,12 @@ typedef union{ typedef union { - struct hw16_bits bits __attribute__ ((packed)); - struct hw16_bytes bytes __attribute__ ((packed)); - struct hw16_tape tape __attribute__ ((packed)); - struct hw16_otype blocktype __attribute__ ((packed)); - unsigned short value __attribute__ ((packed)); -} hw16; + struct hw16_bits bits; + struct hw16_bytes bytes; + struct hw16_tape tape; + struct hw16_otype blocktype; + unsigned short value; +} __attribute__ ((packed)) hw16; enum {BT_DATA,BT_STOP};