PERFORCE change 157369 for review
Robert Watson
rwatson at FreeBSD.org
Sun Feb 8 06:44:21 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=157369
Change 157369 by rwatson at rwatson_cinnamon_macosx on 2009/02/08 14:43:31
Use 32-bit types for 32-bit padding.
Submitted by: sson
Affected files ...
.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#87 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#87 (text+ko) ====
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2004-2008 Apple Inc.
+ * Copyright (c) 2004-2009 Apple Inc.
* Copyright (c) 2005 SPARTA, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#86 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#87 $
*/
#include <sys/types.h>
@@ -168,7 +168,7 @@
token_t *t;
u_char *dptr = NULL;
u_int16_t pad0_16 = 0;
- u_int16_t pad0_32 = 0;
+ u_int32_t pad0_32 = 0;
GET_TOKEN_AREA(t, dptr, sizeof(u_char) + 2 * sizeof(u_int16_t) +
3 * sizeof(u_int32_t) + sizeof(u_int64_t) + sizeof(u_int32_t));
@@ -217,7 +217,7 @@
token_t *t;
u_char *dptr = NULL;
u_int16_t pad0_16 = 0;
- u_int16_t pad0_32 = 0;
+ u_int32_t pad0_32 = 0;
GET_TOKEN_AREA(t, dptr, sizeof(u_char) + 2 * sizeof(u_int16_t) +
3 * sizeof(u_int32_t) + sizeof(u_int64_t) * 2);
More information about the p4-projects
mailing list