From: Andre Noll Date: Sat, 12 Apr 2008 14:22:59 +0000 (+0200) Subject: Make scheduler structs static. X-Git-Tag: v0.3.3~82 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=1023721b3a7bf7f642b3e4d034c2314a3dc7becb;p=paraslash.git Make scheduler structs static. --- diff --git a/afs.c b/afs.c index bc42026e..d9461bb7 100644 --- a/afs.c +++ b/afs.c @@ -1022,7 +1022,7 @@ static void register_command_task(uint32_t cookie) */ __noreturn void afs_init(uint32_t cookie, int socket_fd) { - struct sched s; + static struct sched s; int i, ret; register_signal_task(); diff --git a/audiod.c b/audiod.c index b880eb7f..aebc063f 100644 --- a/audiod.c +++ b/audiod.c @@ -1031,7 +1031,7 @@ int main(int argc, char *argv[]) { char *config_file; int ret, i; - struct sched s; + static struct sched s; struct command_task command_task_struct, *cmd_task = &command_task_struct; struct audiod_cmdline_parser_params params = { .override = 0, diff --git a/client.c b/client.c index c97ceb03..cf115e03 100644 --- a/client.c +++ b/client.c @@ -75,7 +75,7 @@ int main(int argc, char *argv[]) { int ret; - struct sched s; + static struct sched s; s.default_timeout.tv_sec = 1; s.default_timeout.tv_usec = 0; diff --git a/filter.c b/filter.c index 81d5df1a..ed168c39 100644 --- a/filter.c +++ b/filter.c @@ -135,7 +135,7 @@ static int parse_config(int argc, char *argv[]) int main(int argc, char *argv[]) { int ret; - struct sched s; + static struct sched s; stdin_set_defaults(sit); sit->buf = para_malloc(sit->bufsize), diff --git a/recv.c b/recv.c index f9e5b933..5bce847e 100644 --- a/recv.c +++ b/recv.c @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) struct receiver *r = NULL; struct receiver_node rn; struct stdout_task sot; - struct sched s; + static struct sched s; s.default_timeout.tv_sec = 1; s.default_timeout.tv_usec = 0; diff --git a/write.c b/write.c index c692dc92..140e80e5 100644 --- a/write.c +++ b/write.c @@ -182,7 +182,7 @@ out: int main(int argc, char *argv[]) { int ret = -E_WRITE_SYNTAX; - struct sched s; + static struct sched s; struct check_wav_task *cwt = &the_check_wav_task; struct initial_delay_task *idt = &the_initial_delay_task;