diff options
Diffstat (limited to 'docs/examples/threaded-shared-conn.c')
-rw-r--r-- | docs/examples/threaded-shared-conn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/threaded-shared-conn.c b/docs/examples/threaded-shared-conn.c index f20b8a460..e238b952e 100644 --- a/docs/examples/threaded-shared-conn.c +++ b/docs/examples/threaded-shared-conn.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -117,6 +117,7 @@ int main(void) { pthread_t tid[NUM_THREADS]; int i; + int error; CURLSH *share; struct initurl url[NUM_THREADS]; @@ -131,7 +132,6 @@ int main(void) init_locks(); for(i = 0; i< NUM_THREADS; i++) { - int error; url[i].url = URL; url[i].share = share; url[i].threadno = i; @@ -144,7 +144,7 @@ int main(void) /* now wait for all threads to terminate */ for(i = 0; i< NUM_THREADS; i++) { - pthread_join(tid[i], NULL); + error = pthread_join(tid[i], NULL); fprintf(stderr, "Thread %d terminated\n", i); } |