Rename sched() to schedule().
authorAndre Noll <maan@systemlinux.org>
Fri, 23 Nov 2007 10:11:42 +0000 (11:11 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 23 Nov 2007 10:11:42 +0000 (11:11 +0100)
We already have struct sched..

afs.c
audiod.c
client.c
filter.c
recv.c
sched.c
sched.h
write.c

diff --git a/afs.c b/afs.c
index 6c60b08..b9243a4 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -999,7 +999,7 @@ __noreturn void afs_init(uint32_t cookie, int socket_fd)
        register_tasks(cookie);
        s.default_timeout.tv_sec = 0;
        s.default_timeout.tv_usec = 999 * 1000;
-       ret = sched(&s);
+       ret = schedule(&s);
        if (ret < 0)
                PARA_EMERG_LOG("%s\n", PARA_STRERROR(-ret));
        close_afs_tables();
index 3bac70a..9d8ac94 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -1168,7 +1168,7 @@ int main(int argc, char *argv[])
        register_task(audiod_task);
        s.default_timeout.tv_sec = 0;
        s.default_timeout.tv_usec = 99 * 1000;
-       ret = sched(&s);
+       ret = schedule(&s);
 
        PARA_EMERG_LOG("%s\n", PARA_STRERROR(-ret));
        return EXIT_FAILURE;
index 4ef458f..1506f65 100644 (file)
--- a/client.c
+++ b/client.c
@@ -77,7 +77,7 @@ int main(int argc, char *argv[])
        if (ret < 0) /* can not use PARA_LOG here */
                exit(EXIT_FAILURE);
        pcd->task.event_handler = client_event_handler;
-       ret = sched(&s);
+       ret = schedule(&s);
        if (ret < 0)
                PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
        client_close(pcd);
index 842e030..52a1ce5 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -167,7 +167,7 @@ int main(int argc, char *argv[])
        register_task(&sot->task);
        s.default_timeout.tv_sec = 1;
        s.default_timeout.tv_usec = 0;
-       ret = sched(&s);
+       ret = schedule(&s);
 out:
        free(sit->buf);
        close_filters(fc);
diff --git a/recv.c b/recv.c
index 3a3d142..0fe4641 100644 (file)
--- a/recv.c
+++ b/recv.c
@@ -104,7 +104,7 @@ int main(int argc, char *argv[])
        sprintf(rn.task.status, "receiver node");
        register_task(&rn.task);
 
-       ret = sched(&s);
+       ret = schedule(&s);
 out:
        if (r_opened)
                r->close(&rn);
diff --git a/sched.c b/sched.c
index a7660f5..ba43b10 100644 (file)
--- a/sched.c
+++ b/sched.c
@@ -68,7 +68,7 @@ static void sched_post_select(struct sched *s)
  *
  * \sa task, now.
  */
-int sched(struct sched *s)
+int schedule(struct sched *s)
 {
        if (!initialized)
                return -E_NOT_INITIALIZED;
@@ -148,7 +148,7 @@ void unregister_task(struct task *t)
 /**
  * unregister all tasks
  *
- * This will cause \a sched() to return immediately because both the
+ * This will cause \a schedule() to return immediately because both the
  * \a pre_select_list and the \a post_select_list are empty.
  */
 void sched_shutdown(void)
diff --git a/sched.h b/sched.h
index a6ea5b3..7ab8308 100644 (file)
--- a/sched.h
+++ b/sched.h
@@ -83,6 +83,6 @@ extern struct timeval *now;
 
 void register_task(struct task *t);
 void unregister_task(struct task *t);
-int sched(struct sched *s);
+int schedule(struct sched *s);
 char *get_task_list(void);
 int kill_task(char *id);
diff --git a/write.c b/write.c
index 7b95d6b..512f8fc 100644 (file)
--- a/write.c
+++ b/write.c
@@ -240,7 +240,7 @@ int main(int argc, char *argv[])
 
        s.default_timeout.tv_sec = 1;
        s.default_timeout.tv_usec = 0;
-       ret = sched(&s);
+       ret = schedule(&s);
 
 out:
        if (ret < 0) {