]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 bc42026e460ac7ba5f38f992ae17e1f18a3c5ce9..d9461bb7617aaca1c56b7709c6326e0924966562 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 b880eb7f5d819ec60924587b32c72eee20b3bde9..aebc063ff28cabf2ec92966fa589dbf57c904d7e 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 c97ceb039a4a509a15936b0e02c78f7f910ac66a..cf115e03c7ef639ace1f1de12c5387e1968d4058 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 81d5df1a635044e61ee66aba03eca876c8bee398..ed168c39f9ad744ad8779917da7f1adbe455bd30 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 f9e5b9337f2e6775f0605d19e579438439e762d0..5bce847e2dfde634595c6bb62b39bafe39bae953 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 c692dc92fe1a77433aad26078879555a93bb39c6..140e80e54ca6a94372460393d0c6153b332b45bb 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;