summaryrefslogtreecommitdiffstats
path: root/tools/regression
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-08 05:24:06 +0000
committerngie <ngie@FreeBSD.org>2015-12-08 05:24:06 +0000
commit6aac99643ec9646c3f740a00e16c556160b328a5 (patch)
tree63641165b26aab2b688821462f606a4e0e5ec940 /tools/regression
parenta4d2886627e5d71dbac5ce2e49b2a6ba51bc306f (diff)
downloadFreeBSD-src-6aac99643ec9646c3f740a00e16c556160b328a5.zip
FreeBSD-src-6aac99643ec9646c3f740a00e16c556160b328a5.tar.gz
Fix compilation warnings by adding unistd.h #include and missing return
statements MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/tls/ttls2/ttls2.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/regression/tls/ttls2/ttls2.c b/tools/regression/tls/ttls2/ttls2.c
index f528e3d..15eb640 100644
--- a/tools/regression/tls/ttls2/ttls2.c
+++ b/tools/regression/tls/ttls2/ttls2.c
@@ -1,7 +1,8 @@
/* $FreeBSD$ */
-#include <stdio.h>
#include <pthread.h>
+#include <stdio.h>
+#include <unistd.h>
int __thread i;
@@ -13,6 +14,7 @@ foo1(void *arg)
printf("thread %p, i = %d\n", pthread_self(), i);
sleep(1);
}
+ return (NULL);
}
void *
@@ -23,9 +25,11 @@ foo2(void *arg)
printf("thread %p, i = %d\n", pthread_self(), i);
sleep(1);
}
+ return (NULL);
}
-int main(int argc, char** argv)
+int
+main(int argc, char** argv)
{
pthread_t t1, t2;
@@ -33,4 +37,6 @@ int main(int argc, char** argv)
pthread_create(&t2, 0, foo2, 0);
pthread_join(t1, 0);
pthread_join(t2, 0);
+
+ return (0);
}
OpenPOWER on IntegriCloud