Make scheduler structs static.
authorAndre Noll <maan@systemlinux.org>
Sat, 12 Apr 2008 14:22:59 +0000 (16:22 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 12 Apr 2008 14:22:59 +0000 (16:22 +0200)
afs.c
audiod.c
client.c
filter.c
recv.c
write.c

diff --git a/afs.c b/afs.c
index bc42026..d9461bb 100644 (file)
--- 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();
index b880eb7..aebc063 100644 (file)
--- 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,
index c97ceb0..cf115e0 100644 (file)
--- 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;
index 81d5df1..ed168c3 100644 (file)
--- 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 f9e5b93..5bce847 100644 (file)
--- 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 c692dc9..140e80e 100644 (file)
--- 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;