aboutsummaryrefslogtreecommitdiff
path: root/ddb/db_task_thread.c
diff options
context:
space:
mode:
authorGuy-Fleury Iteriteka <gfleury@disroot.org>2023-01-01 14:49:07 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-01 13:56:06 +0100
commit4fa8fee3012a7ecda4d7e45de62e1f3cba5ea38f (patch)
treeb7989f6a5c5fc941b328abe497af14f93cf10cf7 /ddb/db_task_thread.c
parentf41500837c5a0d0433bbc7cc1de603cbccfc2958 (diff)
downloadgnumach-4fa8fee3012a7ecda4d7e45de62e1f3cba5ea38f.tar.gz
gnumach-4fa8fee3012a7ecda4d7e45de62e1f3cba5ea38f.tar.bz2
gnumach-4fa8fee3012a7ecda4d7e45de62e1f3cba5ea38f.zip
convert K&R into ansi
Message-Id: <Y7GBQ5bk6ZQqtfda@falom>
Diffstat (limited to 'ddb/db_task_thread.c')
-rw-r--r--ddb/db_task_thread.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/ddb/db_task_thread.c b/ddb/db_task_thread.c
index 93e44c25..fe742c26 100644
--- a/ddb/db_task_thread.c
+++ b/ddb/db_task_thread.c
@@ -51,8 +51,7 @@ thread_t db_default_thread; /* default target thread */
* search valid task queue, and return the queue position as the task id
*/
int
-db_lookup_task(target_task)
- const task_t target_task;
+db_lookup_task(const task_t target_task)
{
task_t task;
int task_id;
@@ -81,9 +80,7 @@ db_lookup_task(target_task)
* search thread queue of the task, and return the queue position
*/
int
-db_lookup_task_thread(task, target_thread)
- const task_t task;
- const thread_t target_thread;
+db_lookup_task_thread(const task_t task, const thread_t target_thread)
{
thread_t thread;
int thread_id;
@@ -105,8 +102,7 @@ db_lookup_task_thread(task, target_thread)
* as the thread id.
*/
int
-db_lookup_thread(target_thread)
- const thread_t target_thread;
+db_lookup_thread(const thread_t target_thread)
{
int thread_id;
task_t task;
@@ -138,8 +134,7 @@ db_lookup_thread(target_thread)
* check the address is a valid thread address
*/
boolean_t
-db_check_thread_address_valid(thread)
- const thread_t thread;
+db_check_thread_address_valid(const thread_t thread)
{
if (db_lookup_thread(thread) < 0) {
db_printf("Bad thread address 0x%x\n", thread);
@@ -245,11 +240,11 @@ db_init_default_thread(void)
*/
/* ARGSUSED */
void
-db_set_default_thread(vp, valuep, flag, ap)
- struct db_variable *vp;
- db_expr_t *valuep;
- int flag;
- db_var_aux_param_t ap;
+db_set_default_thread(
+ struct db_variable *vp,
+ db_expr_t *valuep,
+ int flag,
+ db_var_aux_param_t ap)
{
thread_t thread;