From f15a16b7a40e263ab7e86c9437fe9db0216ba605 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 1 Apr 2008 22:18:31 +0200 Subject: [PATCH] Make unregister_task() static. It has no more users outside sched.c. --- sched.c | 2 +- sched.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sched.c b/sched.c index 9b0bddc1..02793124 100644 --- a/sched.c +++ b/sched.c @@ -32,7 +32,7 @@ struct timeval *now = &now_struct; * If the pre_select pointer of \a t is not \p NULL, it is removed from * the pre_select list of the scheduler. Same goes for \a post_select. */ -void unregister_task(struct task *t) +static void unregister_task(struct task *t) { if (!initialized) return; diff --git a/sched.h b/sched.h index 86afc6fc..b92aaff7 100644 --- a/sched.h +++ b/sched.h @@ -73,7 +73,6 @@ struct task { extern struct timeval *now; void register_task(struct task *t); -void unregister_task(struct task *t); int schedule(struct sched *s); char *get_task_list(void); int kill_task(char *id); -- 2.39.5