]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 6c60b086c1ca2db90efef9d4a790e4ce376d93f6..b9243a4169b16addf95a010ba580ea8170acd24c 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 3bac70ade87f7ba644dd8f5af2a68c1740976bd2..9d8ac94ed40fbb69837423b94247d89cebb8c377 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 4ef458f8d676604f18a32758adf5621a88f4f942..1506f656c28eeaabff0d8213c0b45e597bebeb2e 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 842e030f3eb58cf13257406154f2aeb17c650826..52a1ce5bf05c85c514f56e67cc4cf5ff5da6ce30 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 3a3d142692aeab0018c13770d7eab1a94502cccc..0fe46411df8348cb92b65d2f22902f36f03d133f 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 a7660f5972c9f678b6f3a19b7b4398a1e43ae24b..ba43b10cff143960d3741fb6c0f7238b351de865 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 a6ea5b34ca8bf47b77765b0860dc19c06f3b813d..7ab830861a940bff99c3085d3e07be055eb5c513 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 7b95d6b37eb3865d475a3bda4f822ec3e9b60893..512f8fcca23dce7e809ad19ed6c9784f45199993 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) {