From 6105cde18ae21b82708a4c98aa2d54820afd47a5 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 23 Nov 2007 11:11:42 +0100 Subject: [PATCH] Rename sched() to schedule(). We already have struct sched.. --- afs.c | 2 +- audiod.c | 2 +- client.c | 2 +- filter.c | 2 +- recv.c | 2 +- sched.c | 4 ++-- sched.h | 2 +- write.c | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/afs.c b/afs.c index 6c60b086..b9243a41 100644 --- 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(); diff --git a/audiod.c b/audiod.c index 3bac70ad..9d8ac94e 100644 --- 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; diff --git a/client.c b/client.c index 4ef458f8..1506f656 100644 --- 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); diff --git a/filter.c b/filter.c index 842e030f..52a1ce5b 100644 --- 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 3a3d1426..0fe46411 100644 --- 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 a7660f59..ba43b10c 100644 --- 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 a6ea5b34..7ab83086 100644 --- 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 7b95d6b3..512f8fcc 100644 --- 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) { -- 2.39.5