summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 *),