diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2007-05-31 21:33:08 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2007-05-31 21:33:08 +0000 |
commit | 8858a5f5a9ca6a4723ce09309514ef9e9133c7cf (patch) | |
tree | 0390302d0d7b82151e58c21a0ce99406aaabfd83 /sys/kern/kern_workq.c | |
parent | 7ca5e9cc58ada482095b6fcbc853f50f024b6cc5 (diff) |
switch the flags argument to the front, requested by art
ok dlg
Diffstat (limited to 'sys/kern/kern_workq.c')
-rw-r--r-- | sys/kern/kern_workq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_workq.c b/sys/kern/kern_workq.c index e3435bb8fca..251010400f9 100644 --- a/sys/kern/kern_workq.c +++ b/sys/kern/kern_workq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_workq.c,v 1.1 2007/05/31 18:16:59 dlg Exp $ */ +/* $OpenBSD: kern_workq.c,v 1.2 2007/05/31 21:33:07 tedu Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -28,7 +28,7 @@ struct workq_task { int wqt_flags; - void (*wqt_func)(void *, void *); + workq_fn wqt_func; void *wqt_arg1; void *wqt_arg2; @@ -121,8 +121,8 @@ workq_destroy(struct workq *wq) } int -workq_add_task(struct workq *wq, void (*func)(void *, void *), - void *a1, void *a2, int flags) +workq_add_task(struct workq *wq, int flags, workq_fn func, + void *a1, void *a2) { struct workq_task *wqt; int wake = 1; |