From 26eb3e31190fc9b2c145f8d689cca6b8327b96f1 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 29 Oct 2013 04:32:09 +0000 Subject: use unsigned int instead of u_int to reduce the depend on types.h. might make jsg a little happier. --- sys/kern/kern_task.c | 8 ++++---- sys/sys/task.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'sys') diff --git a/sys/kern/kern_task.c b/sys/kern/kern_task.c index f4d18b54b55..83c8b43643f 100644 --- a/sys/kern/kern_task.c +++ b/sys/kern/kern_task.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_task.c,v 1.1 2013/10/29 04:23:16 dlg Exp $ */ +/* $OpenBSD: kern_task.c,v 1.2 2013/10/29 04:32:08 dlg Exp $ */ /* * Copyright (c) 2013 David Gwynne @@ -33,8 +33,8 @@ struct taskq { TQ_S_RUNNING, TQ_S_DESTROYED } tq_state; - u_int tq_running; - u_int tq_nthreads; + unsigned int tq_running; + unsigned int tq_nthreads; const char *tq_name; struct mutex tq_mtx; @@ -68,7 +68,7 @@ taskq_systq(void) } struct taskq * -taskq_create(const char *name, u_int nthreads, int ipl) +taskq_create(const char *name, unsigned int nthreads, int ipl) { struct taskq *tq; diff --git a/sys/sys/task.h b/sys/sys/task.h index 8a716230c48..7cdcfd1e4ed 100644 --- a/sys/sys/task.h +++ b/sys/sys/task.h @@ -1,4 +1,4 @@ -/* $OpenBSD: task.h,v 1.1 2013/10/29 04:23:16 dlg Exp $ */ +/* $OpenBSD: task.h,v 1.2 2013/10/29 04:32:08 dlg Exp $ */ /* * Copyright (c) 2013 David Gwynne @@ -28,11 +28,11 @@ struct task { void (*t_func)(void *, void *); void *t_arg1; void *t_arg2; - u_int t_flags; + unsigned int t_flags; }; struct taskq *taskq_systq(void); -struct taskq *taskq_create(const char *, u_int, int); +struct taskq *taskq_create(const char *, unsigned int, int); void taskq_destroy(struct taskq *); void task_set(struct task *, void (*)(void *, void *), -- cgit v1.2.3