summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/types.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-10-06 19:13:37 +0000
committerbde <bde@FreeBSD.org>1996-10-06 19:13:37 +0000
commitc7220f5d81298fa849b1805989c989cabbc2daf0 (patch)
treefe022c1f09f067747146c846335b9a25a7459904 /sys/i386/include/types.h
parent38f3ce75b7004c684ab874c3c65cf573d1df8220 (diff)
downloadFreeBSD-src-c7220f5d81298fa849b1805989c989cabbc2daf0.zip
FreeBSD-src-c7220f5d81298fa849b1805989c989cabbc2daf0.tar.gz
Cleaned up vm types. Cosmetic.
The main change is from unsigned long unsigned int. It just needs to be a 32-bit type and unsigned int is most natural. Using a non-long type has the "advantage" of hiding bugs in the "machine-independent" code where it prints foo_t's using %d or %x. These bugs are currently hidden bug not compiling with -Wformat. I tried changing vm_ooffset_t from long long to unsigned long long, but that was wrong because vm_ooffset_t needs to be long to match off_t, although file offsets are never negative. Reviewed by: dyson
Diffstat (limited to 'sys/i386/include/types.h')
-rw-r--r--sys/i386/include/types.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/i386/include/types.h b/sys/i386/include/types.h
index 4cd13ca..7b0d800 100644
--- a/sys/i386/include/types.h
+++ b/sys/i386/include/types.h
@@ -31,11 +31,11 @@
* SUCH DAMAGE.
*
* @(#)types.h 8.3 (Berkeley) 1/5/94
- * $Id: types.h,v 1.6 1996/02/25 09:15:03 hsu Exp $
+ * $Id: types.h,v 1.6 1996/03/11 02:23:56 hsu Exp $
*/
-#ifndef _MACHTYPES_H_
-#define _MACHTYPES_H_
+#ifndef _MACHINE_TYPES_H_
+#define _MACHINE_TYPES_H_
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
typedef struct _physadr {
@@ -47,10 +47,10 @@ typedef struct label_t {
} label_t;
#endif
-typedef unsigned long vm_offset_t;
-typedef unsigned long vm_size_t;
+typedef unsigned int vm_offset_t;
typedef long long vm_ooffset_t;
-typedef unsigned long vm_pindex_t;
+typedef unsigned int vm_pindex_t;
+typedef unsigned int vm_size_t;
/*
* Basic integral types. Omit the typedef if
@@ -67,4 +67,4 @@ typedef unsigned long long u_int64_t;
typedef int32_t register_t;
-#endif /* _MACHTYPES_H_ */
+#endif /* !_MACHINE_TYPES_H_ */
OpenPOWER on IntegriCloud