aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_devstat.c
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-06-21 09:55:56 +0000
committerEd Schouten <ed@FreeBSD.org>2010-06-21 09:55:56 +0000
commit60ae52f785331b48d1f4e82a9cf3f2d0da9540d5 (patch)
tree916572d41a618634b84823c3b89048c2144938df /sys/kern/subr_devstat.c
parentc51050129f349837af73605da2f93d408b62e968 (diff)
downloadsrc-60ae52f785331b48d1f4e82a9cf3f2d0da9540d5.tar.gz
src-60ae52f785331b48d1f4e82a9cf3f2d0da9540d5.zip
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.
Notes
Notes: svn path=/head/; revision=209390
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 a214bf63992b..442b2df3db35 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)
{