From: Andre Noll Date: Tue, 1 Apr 2008 20:18:31 +0000 (+0200) Subject: Make unregister_task() static. X-Git-Tag: v0.3.2~28 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=f15a16b7a40e263ab7e86c9437fe9db0216ba605;ds=sidebyside Make unregister_task() static. It has no more users outside sched.c. --- 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);