summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_devstat.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-06-21 09:55:56 +0000
committered <ed@FreeBSD.org>2010-06-21 09:55:56 +0000
commit76489ac1ea604f511232838164573ea21e9a74a8 (patch)
tree916572d41a618634b84823c3b89048c2144938df /sys/kern/subr_devstat.c
parent107ec73aada25d2e0a7051e1f2a8cbef92902d04 (diff)
downloadFreeBSD-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_devstat.c')
-rw-r--r--sys/kern/subr_devstat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index a214bf6..442b2df 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -54,7 +54,7 @@ static struct devstatlist device_statq;
static struct devstat *devstat_alloc(void);
static void devstat_free(struct devstat *);
static void devstat_add_entry(struct devstat *ds, const void *dev_name,
- int unit_number, u_int32_t block_size,
+ int unit_number, uint32_t block_size,
devstat_support_flags flags,
devstat_type_flags device_type,
devstat_priority priority);
@@ -64,7 +64,7 @@ static void devstat_add_entry(struct devstat *ds, const void *dev_name,
*/
struct devstat *
devstat_new_entry(const void *dev_name,
- int unit_number, u_int32_t block_size,
+ int unit_number, uint32_t block_size,
devstat_support_flags flags,
devstat_type_flags device_type,
devstat_priority priority)
@@ -99,7 +99,7 @@ devstat_new_entry(const void *dev_name,
*/
static void
devstat_add_entry(struct devstat *ds, const void *dev_name,
- int unit_number, u_int32_t block_size,
+ int unit_number, uint32_t block_size,
devstat_support_flags flags,
devstat_type_flags device_type,
devstat_priority priority)
@@ -275,7 +275,7 @@ devstat_start_transaction_bio(struct devstat *ds, struct bio *bp)
* atomic instructions using appropriate memory barriers.
*/
void
-devstat_end_transaction(struct devstat *ds, u_int32_t bytes,
+devstat_end_transaction(struct devstat *ds, uint32_t bytes,
devstat_tag_type tag_type, devstat_trans_flags flags,
struct bintime *now, struct bintime *then)
{
OpenPOWER on IntegriCloud