summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2013-10-29 04:32:09 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2013-10-29 04:32:09 +0000
commit26eb3e31190fc9b2c145f8d689cca6b8327b96f1 (patch)
tree40d57becc09fb5369df1885b2704c2d6121ec5b9 /sys
parentc9ef89bbff80978bd7d7dc9a9bdbc1c5ed22d27e (diff)
use unsigned int instead of u_int to reduce the depend on types.h.
might make jsg a little happier.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_task.c8
-rw-r--r--sys/sys/task.h6
2 files changed, 7 insertions, 7 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;
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 <dlg@openbsd.org>
@@ -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 *),