diff options
author | ed <ed@FreeBSD.org> | 2010-06-21 09:55:56 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-06-21 09:55:56 +0000 |
commit | 76489ac1ea604f511232838164573ea21e9a74a8 (patch) | |
tree | 916572d41a618634b84823c3b89048c2144938df /sys/kern/subr_bus.c | |
parent | 107ec73aada25d2e0a7051e1f2a8cbef92902d04 (diff) | |
download | FreeBSD-src-76489ac1ea604f511232838164573ea21e9a74a8.zip FreeBSD-src-76489ac1ea604f511232838164573ea21e9a74a8.tar.gz |
Use ISO C99 integer types in sys/kern where possible.
There are only about 100 occurences of the BSD-specific u_int*_t
datatypes in sys/kern. The ISO C99 integer types are used here more
often.
Diffstat (limited to 'sys/kern/subr_bus.c')
-rw-r--r-- | sys/kern/subr_bus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 33a7473..267d5be5 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -120,7 +120,7 @@ struct device { char* desc; /**< driver specific description */ int busy; /**< count of calls to device_busy() */ device_state_t state; /**< current device state */ - u_int32_t devflags; /**< api level flags for device_get_flags() */ + uint32_t devflags; /**< api level flags for device_get_flags() */ u_short flags; /**< internal device flags */ #define DF_ENABLED 1 /* device should be probed/attached */ #define DF_FIXEDCLASS 2 /* devclass specified at create time */ @@ -2207,7 +2207,7 @@ device_get_desc(device_t dev) /** * @brief Return the device's flags */ -u_int32_t +uint32_t device_get_flags(device_t dev) { return (dev->devflags); @@ -2315,7 +2315,7 @@ device_set_desc_copy(device_t dev, const char* desc) * @brief Set the device's flags */ void -device_set_flags(device_t dev, u_int32_t flags) +device_set_flags(device_t dev, uint32_t flags) { dev->devflags = flags; } |