Make unregister_task() static.
authorAndre Noll <maan@systemlinux.org>
Tue, 1 Apr 2008 20:18:31 +0000 (22:18 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 1 Apr 2008 20:18:31 +0000 (22:18 +0200)
It has no more users outside sched.c.

sched.c
sched.h

diff --git a/sched.c b/sched.c
index 9b0bddc..0279312 100644 (file)
--- 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 86afc6f..b92aaff 100644 (file)
--- 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);