summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-01-20 13:33:19 -0800
committerOri Bernstein <ori@eigenstate.org>2015-01-20 13:33:19 -0800
commitd99446a4eb050905981afd2c9f58341f739eba64 (patch)
tree08707efc417980575fac478323ecd499886c1af8
parent61a9e807de75f67fd5467aa671b00935d202f0e3 (diff)
downloadmc-d99446a4eb050905981afd2c9f58341f739eba64.tar.gz
Add missing stdarg.h includes.
-rw-r--r--6/gen.c1
-rw-r--r--6/gengas.c1
-rw-r--r--6/genp9.c1
-rw-r--r--6/main.c4
-rw-r--r--6/simp.c1
-rw-r--r--6/typeinfo.c1
-rw-r--r--muse/muse.c1
-rw-r--r--parse/bitset.c1
-rw-r--r--parse/dump.c1
-rw-r--r--parse/gram.y1
-rw-r--r--parse/htab.c1
-rw-r--r--parse/infer.c1
-rw-r--r--parse/names.c1
-rw-r--r--parse/specialize.c1
-rw-r--r--parse/tok.c1
-rw-r--r--parse/type.c1
-rw-r--r--parse/use.c1
17 files changed, 18 insertions, 2 deletions
diff --git a/6/gen.c b/6/gen.c
index 8959877..2f1a937 100644
--- a/6/gen.c
+++ b/6/gen.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/6/gengas.c b/6/gengas.c
index 3f0d365..f6a9b83 100644
--- a/6/gengas.c
+++ b/6/gengas.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/6/genp9.c b/6/genp9.c
index 3c21cfb..a89dc35 100644
--- a/6/genp9.c
+++ b/6/genp9.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/6/main.c b/6/main.c
index f328479..db850ae 100644
--- a/6/main.c
+++ b/6/main.c
@@ -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;
}
diff --git a/6/simp.c b/6/simp.c
index 4aa0332..5c986e1 100644
--- a/6/simp.c
+++ b/6/simp.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/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>