summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_task.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2013-10-29 04:32:08 +0000
committerdlg <dlg@openbsd.org>2013-10-29 04:32:08 +0000
commit3c9f708da0a64c8e5f1244931d44f3c0940faf94 (patch)
tree6931229586e8efe2c5427a51f159574c14f0e52f /sys/kern/kern_task.c
parentintroduce tasks and taskqs as an alternative to workqs. (diff)
downloadwireguard-openbsd-3c9f708da0a64c8e5f1244931d44f3c0940faf94.tar.xz
wireguard-openbsd-3c9f708da0a64c8e5f1244931d44f3c0940faf94.zip
use unsigned int instead of u_int to reduce the depend on types.h.
might make jsg a little happier.
Diffstat (limited to 'sys/kern/kern_task.c')
-rw-r--r--sys/kern/kern_task.c8
1 files changed, 4 insertions, 4 deletions
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 <dlg@openbsd.org>
@@ -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;