aboutsummaryrefslogtreecommitdiff
path: root/ddb/db_print.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-12-25 20:41:46 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-27 00:00:50 +0100
commit84e0fb3f287864eca3a9322ef364b913f6a260bd (patch)
tree123333bce32a7d57c5112aa0d4c07b12821b6305 /ddb/db_print.c
parent63eefc08b5e762937118254ad0b82583cc38a2d2 (diff)
downloadgnumach-84e0fb3f287864eca3a9322ef364b913f6a260bd.tar.gz
gnumach-84e0fb3f287864eca3a9322ef364b913f6a260bd.tar.bz2
gnumach-84e0fb3f287864eca3a9322ef364b913f6a260bd.zip
Fix some warnings with -Wmissing-prototypes.
Marked some functions as static (private) as needed and added missing includes. This also revealed some dead code which was removed. Note that -Wmissing-prototypes is not enabled here since there is a bunch more warnings. Message-Id: <Y6j72lWRL9rsYy4j@mars>
Diffstat (limited to 'ddb/db_print.c')
-rw-r--r--ddb/db_print.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ddb/db_print.c b/ddb/db_print.c
index 8a76beea..6c2ea238 100644
--- a/ddb/db_print.c
+++ b/ddb/db_print.c
@@ -127,7 +127,7 @@ db_show_regs(
#define db_thread_fp_used(thread) FALSE
#endif
-char *
+static char *
db_thread_stat(thread, status)
const thread_t thread;
char *status;
@@ -145,7 +145,7 @@ db_thread_stat(thread, status)
return(status);
}
-void
+static void
db_print_thread(
thread_t thread,
int thread_id,
@@ -244,7 +244,7 @@ db_print_thread(
}
}
-void
+static void
db_print_task(
task_t task,
int task_id,
@@ -466,7 +466,7 @@ db_show_one_task(addr, have_addr, count, modif)
db_print_task(task, task_id, flag);
}
-int
+static int
db_port_iterate(thread, func)
const thread_t thread;
void (*func)();