diff options
author | bde <bde@FreeBSD.org> | 2001-10-03 05:25:07 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2001-10-03 05:25:07 +0000 |
commit | e94a83a24720b8a8acf2866b54acde2c005eacb5 (patch) | |
tree | b82b0031152205840f9e5f5124e742a2cbf6b56e | |
parent | fb673f2a687fb84f4d9385ce020f86f996c28e4d (diff) | |
download | FreeBSD-src-e94a83a24720b8a8acf2866b54acde2c005eacb5.zip FreeBSD-src-e94a83a24720b8a8acf2866b54acde2c005eacb5.tar.gz |
Made this header self-sufficient.
Fully parenthesized a macro definition.
-rw-r--r-- | lib/libdevinfo/devinfo.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/libdevinfo/devinfo.h b/lib/libdevinfo/devinfo.h index 2b3c792..3d978d3 100644 --- a/lib/libdevinfo/devinfo.h +++ b/lib/libdevinfo/devinfo.h @@ -27,8 +27,11 @@ * $FreeBSD$ */ -typedef uintptr_t devinfo_handle_t; -#define DEVINFO_ROOT_DEVICE (devinfo_handle_t)0 +#include <sys/cdefs.h> +#include <machine/ansi.h> + +typedef __uintptr_t devinfo_handle_t; +#define DEVINFO_ROOT_DEVICE ((devinfo_handle_t)0) struct devinfo_dev { devinfo_handle_t dd_handle; /* device handle */ @@ -42,8 +45,8 @@ struct devinfo_dev { struct devinfo_rman { devinfo_handle_t dm_handle; /* resource manager handle */ - u_long dm_start; /* resource start */ - u_long dm_size; /* resource size */ + unsigned long dm_start; /* resource start */ + unsigned long dm_size; /* resource size */ char *dm_desc; /* resource description */ }; @@ -53,8 +56,8 @@ struct devinfo_res { devinfo_handle_t dr_rman; /* resource manager handle */ devinfo_handle_t dr_device; /* owning device */ - u_long dr_start; /* region start */ - u_long dr_size; /* region size */ + unsigned long dr_start; /* region start */ + unsigned long dr_size; /* region size */ /* XXX add flags */ }; |