Use uintN_t.

This commit is contained in:
uwe 2006-01-20 02:47:30 +00:00
parent 3281cee076
commit cebdea24e0
2 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kloader.c,v 1.8 2006/01/02 20:51:09 uwe Exp $ */ /* $NetBSD: kloader.c,v 1.9 2006/01/20 02:47:30 uwe Exp $ */
/*- /*-
* Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc. * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kloader.c,v 1.8 2006/01/02 20:51:09 uwe Exp $"); __KERNEL_RCSID(0, "$NetBSD: kloader.c,v 1.9 2006/01/20 02:47:30 uwe Exp $");
#include "debug_kloader.h" #include "debug_kloader.h"
@ -699,7 +699,7 @@ kloader_pagetag_dump()
print = FALSE; print = FALSE;
if (i < n) if (i < n)
print = TRUE; print = TRUE;
if ((u_int32_t)p & 3) { if ((uint32_t)p & 3) {
printf("tag alignment error\n"); printf("tag alignment error\n");
break; break;
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: kloader.h,v 1.3 2005/12/11 12:20:53 christos Exp $ */ /* $NetBSD: kloader.h,v 1.4 2006/01/20 02:47:30 uwe Exp $ */
/*- /*-
* Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc. * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
@ -73,10 +73,10 @@ struct kloader_ops {
* new kernel is primary loaded into discrete pages. * new kernel is primary loaded into discrete pages.
*/ */
struct kloader_page_tag { struct kloader_page_tag {
u_int32_t next; uint32_t next;
u_int32_t src; uint32_t src;
u_int32_t dst; uint32_t dst;
u_int32_t sz; uint32_t sz;
} __attribute__((__packed__, __aligned__(4))); } __attribute__((__packed__, __aligned__(4)));
#define KLOADER_KERNELARGS_MAX 256 #define KLOADER_KERNELARGS_MAX 256