diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-09-01 17:30:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-09-01 17:30:57 +0000 |
commit | b5ddfff7891a756d08e42a986080abc019cf830c (patch) | |
tree | 2d2e16402c922e643d1ccadcc085c3796c7bb75d /sys/dev/ic/gdtvar.h | |
parent | 400b04c7f1f655a02a152b93e698f7448833e20e (diff) |
Avoid #pragma pack(1) and unify everything towards using __packed.
This requires that structures defined within __packed structures must
independently request that they themselves become __packed, too.
worked on with toby
CVS: ----------------------------------------------------------------------
Diffstat (limited to 'sys/dev/ic/gdtvar.h')
-rw-r--r-- | sys/dev/ic/gdtvar.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/ic/gdtvar.h b/sys/dev/ic/gdtvar.h index fef1a9f1edf..2b4fa865bf2 100644 --- a/sys/dev/ic/gdtvar.h +++ b/sys/dev/ic/gdtvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: gdtvar.h,v 1.14 2007/11/11 14:03:35 krw Exp $ */ +/* $OpenBSD: gdtvar.h,v 1.15 2008/09/01 17:30:56 deraadt Exp $ */ /* * Copyright (c) 1999, 2000 Niklas Hallqvist. All rights reserved. @@ -38,9 +38,6 @@ struct gdt_dummy { int x; }; -/* XXX Is this pragma necessary? */ -#pragma pack(1) - #define GDT_SCRATCH_SZ 4096 #define GDT_IOCTL_GENERAL _IOWR('B', 33, gdt_ucmd_t) /* general IOCTL */ @@ -198,8 +195,6 @@ typedef struct gdt_statist { u_int16_t sg_count_max; } gdt_statist_t; -#pragma pack() - #ifdef _KERNEL /* Debugging */ |