VirtualBox

Changeset 38388 in vbox


Ignore:
Timestamp:
Aug 9, 2011 9:21:55 PM (13 years ago)
Author:
vboxsync
Message:

vboxnetadp: alignment fix and assert paranoia

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdpInternal.h

    r38370 r38388  
    55
    66/*
    7  * Copyright (C) 2008 Oracle Corporation
     7 * Copyright (C) 2008-2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    128128        } s;
    129129#endif
    130         /** Padding. */
     130        /** Padding + union alignment to a pointer. */
     131        void *pvAlign;
    131132#if defined(RT_OS_WINDOWS)
    132133# if defined(VBOX_NETFLT_ONDEMAND_BIND)
     
    146147typedef struct VBoxNetAdapter VBOXNETADP;
    147148typedef VBOXNETADP *PVBOXNETADP;
     149/* Paranoia checks for alignment and padding. */
     150AssertCompileMemberAlignment(VBOXNETADP, u, ARCH_BITS/8);
     151AssertCompileMemberAlignment(VBOXNETADP, szName, ARCH_BITS/8);
     152AssertCompileMembersSameSize(VBOXNETADP, u, VBOXNETADP, u.abPadding);
    148153
    149154DECLHIDDEN(int) vboxNetAdpInit(void);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette