summaryrefslogtreecommitdiff
path: root/TestPrograms/test_pthreads.cxx
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-11-13 13:43:20 -0500
committerJeffrey Walton <noloader@gmail.com>2018-11-13 13:43:20 -0500
commit69a00192b9591439154db887cbdc8bbac6af0ea0 (patch)
tree12afd61c07d8e2e7e7b893072a99832b82256f25 /TestPrograms/test_pthreads.cxx
parentdd6af58c98cef522e77476b119ff7bf6764f80c6 (diff)
downloadcryptopp-git-69a00192b9591439154db887cbdc8bbac6af0ea0.tar.gz
Add return value to pthread test function
Diffstat (limited to 'TestPrograms/test_pthreads.cxx')
-rw-r--r--TestPrograms/test_pthreads.cxx29
1 files changed, 15 insertions, 14 deletions
diff --git a/TestPrograms/test_pthreads.cxx b/TestPrograms/test_pthreads.cxx
index 062d8b21..adbf3990 100644
--- a/TestPrograms/test_pthreads.cxx
+++ b/TestPrograms/test_pthreads.cxx
@@ -1,14 +1,15 @@
-#include <string>
-#include <pthreads.h>
-
-void* function(void *ptr)
-{
-}
-
-int main(int argc, char* argv[])
-{
- pthread_t thread;
- int ret = pthread_create(&thread, NULL, function, (void*)0);
- pthread_join(thread, NULL);
- return 0;
-}
+#include <string>
+#include <pthread.h>
+
+void* function(void *ptr)
+{
+ return 0;
+}
+
+int main(int argc, char* argv[])
+{
+ pthread_t thread;
+ int ret = pthread_create(&thread, NULL, function, (void*)0);
+ pthread_join(thread, NULL);
+ return 0;
+}