diff options
author | Ori Bernstein <ori@eigenstate.org> | 2015-01-20 13:33:19 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2015-01-20 13:33:19 -0800 |
commit | cdb6581140b3673dd83ac62a3fd272c21c420aea (patch) | |
tree | 08707efc417980575fac478323ecd499886c1af8 | |
parent | b9b0d1222d90c30ea7921a175cd9653c84dd06b7 (diff) | |
download | mc-cdb6581140b3673dd83ac62a3fd272c21c420aea.tar.gz |
Add missing stdarg.h includes.
-rw-r--r-- | 6/gen.c | 1 | ||||
-rw-r--r-- | 6/gengas.c | 1 | ||||
-rw-r--r-- | 6/genp9.c | 1 | ||||
-rw-r--r-- | 6/main.c | 4 | ||||
-rw-r--r-- | 6/simp.c | 1 | ||||
-rw-r--r-- | 6/typeinfo.c | 1 | ||||
-rw-r--r-- | muse/muse.c | 1 | ||||
-rw-r--r-- | parse/bitset.c | 1 | ||||
-rw-r--r-- | parse/dump.c | 1 | ||||
-rw-r--r-- | parse/gram.y | 1 | ||||
-rw-r--r-- | parse/htab.c | 1 | ||||
-rw-r--r-- | parse/infer.c | 1 | ||||
-rw-r--r-- | parse/names.c | 1 | ||||
-rw-r--r-- | parse/specialize.c | 1 | ||||
-rw-r--r-- | parse/tok.c | 1 | ||||
-rw-r--r-- | parse/type.c | 1 | ||||
-rw-r--r-- | parse/use.c | 1 |
17 files changed, 18 insertions, 2 deletions
@@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> @@ -111,8 +112,7 @@ static char *gentemp(char *buf, size_t bufsz, char *path, char *suffix) else base = path; gettimeofday(&tv, NULL); - srand(tv.tv_usec); - snprintf(buf, bufsz, "%s/tmp%lx%lx-%s%s", tmpdir, (long)rand(), (long)tv.tv_usec, base, suffix); + snprintf(buf, bufsz, "%s/tmp%lx%lx-%s%s", tmpdir, (long)tv.tv_sec, (long)tv.tv_usec, base, suffix); return buf; } @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> diff --git a/6/typeinfo.c b/6/typeinfo.c index abe9fb9..cdafa33 100644 --- a/6/typeinfo.c +++ b/6/typeinfo.c @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> diff --git a/muse/muse.c b/muse/muse.c index 7f409b4..17182e2 100644 --- a/muse/muse.c +++ b/muse/muse.c @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> diff --git a/parse/bitset.c b/parse/bitset.c index 2df1b20..7eea1d3 100644 --- a/parse/bitset.c +++ b/parse/bitset.c @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <assert.h> #include <limits.h> diff --git a/parse/dump.c b/parse/dump.c index 97299f5..88d5e57 100644 --- a/parse/dump.c +++ b/parse/dump.c @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> diff --git a/parse/gram.y b/parse/gram.y index 6b0ca62..bc55053 100644 --- a/parse/gram.y +++ b/parse/gram.y @@ -4,6 +4,7 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> diff --git a/parse/htab.c b/parse/htab.c index 341e2bb..529f809 100644 --- a/parse/htab.c +++ b/parse/htab.c @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <assert.h> #include <limits.h> diff --git a/parse/infer.c b/parse/infer.c index d447b76..900fb27 100644 --- a/parse/infer.c +++ b/parse/infer.c @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <inttypes.h> #include <ctype.h> diff --git a/parse/names.c b/parse/names.c index 3a0009d..5ca71e8 100644 --- a/parse/names.c +++ b/parse/names.c @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> diff --git a/parse/specialize.c b/parse/specialize.c index 5b1c340..aec08ab 100644 --- a/parse/specialize.c +++ b/parse/specialize.c @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> diff --git a/parse/tok.c b/parse/tok.c index acdf962..c826907 100644 --- a/parse/tok.c +++ b/parse/tok.c @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> diff --git a/parse/type.c b/parse/type.c index ec282e6..9fccb07 100644 --- a/parse/type.c +++ b/parse/type.c @@ -1,6 +1,7 @@ #include <assert.h> #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> diff --git a/parse/use.c b/parse/use.c index b58fb2a..d403602 100644 --- a/parse/use.c +++ b/parse/use.c @@ -1,5 +1,6 @@ #include <stdlib.h> #include <stdio.h> +#include <stdarg.h> #include <inttypes.h> #include <ctype.h> #include <string.h> |