summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/getnast.c1
-rw-r--r--tests/mtstressnast.c2
-rw-r--r--tests/randnast.c2
-rw-r--r--tests/stressnast.c2
-rw-r--r--tests/updnast.c1
5 files changed, 5 insertions, 3 deletions
diff --git a/tests/getnast.c b/tests/getnast.c
index 904c01f..392df32 100644
--- a/tests/getnast.c
+++ b/tests/getnast.c
@@ -3,6 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
+#include <unistd.h>
char *progname;
diff --git a/tests/mtstressnast.c b/tests/mtstressnast.c
index 913312e..513d426 100644
--- a/tests/mtstressnast.c
+++ b/tests/mtstressnast.c
@@ -43,7 +43,7 @@ io_looper(void *arg)
after.tv_usec += 1000000;
}
fprintf(stderr, "Request time: %2ld.%06ld seconds.\n",
- after.tv_sec, after.tv_usec);
+ after.tv_sec, (unsigned long)after.tv_usec);
}
}
}
diff --git a/tests/randnast.c b/tests/randnast.c
index dd39fc6..58fe044 100644
--- a/tests/randnast.c
+++ b/tests/randnast.c
@@ -61,7 +61,7 @@ main(int argc, char *argv[])
after.tv_usec += 1000000;
}
fprintf(stderr, "Request time: %2ld.%06ld seconds.\n",
- after.tv_sec, after.tv_usec);
+ after.tv_sec, (unsigned long)after.tv_usec);
}
}
nast_sphincter_close(nasthole);
diff --git a/tests/stressnast.c b/tests/stressnast.c
index ad17a51..b95b63d 100644
--- a/tests/stressnast.c
+++ b/tests/stressnast.c
@@ -52,7 +52,7 @@ main(int argc, char *argv[])
after.tv_usec += 1000000;
}
fprintf(stderr, "Request time: %2ld.%06ld seconds.\n",
- after.tv_sec, after.tv_usec);
+ after.tv_sec, (unsigned long)after.tv_usec);
}
}
nast_sphincter_close(nasthole);
diff --git a/tests/updnast.c b/tests/updnast.c
index 9acef66..e248cc5 100644
--- a/tests/updnast.c
+++ b/tests/updnast.c
@@ -3,6 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
+#include <unistd.h>
char *progname;