summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-04-15 12:26:44 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2008-04-15 12:26:44 -0400
commit1230dd8c6ee7265e4d3084cea0079e8d9274014f (patch)
tree4e0de173465102c9fadb09839846e175db86861b
parentfd83ab45064c46e4f1b8b0620ff81acfec454d6d (diff)
downloadnastd-1230dd8c6ee7265e4d3084cea0079e8d9274014f.tar.gz
nastd-1230dd8c6ee7265e4d3084cea0079e8d9274014f.zip
Get clients built on darwin.
-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;