diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-11-13 13:43:20 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-11-13 13:43:20 -0500 |
commit | 69a00192b9591439154db887cbdc8bbac6af0ea0 (patch) | |
tree | 12afd61c07d8e2e7e7b893072a99832b82256f25 /TestPrograms/test_pthreads.cxx | |
parent | dd6af58c98cef522e77476b119ff7bf6764f80c6 (diff) | |
download | cryptopp-git-69a00192b9591439154db887cbdc8bbac6af0ea0.tar.gz |
Add return value to pthread test function
Diffstat (limited to 'TestPrograms/test_pthreads.cxx')
-rw-r--r-- | TestPrograms/test_pthreads.cxx | 29 |
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; +} |