diff options
Diffstat (limited to 'docs/examples/threaded-shared-conn.c')
-rw-r--r-- | docs/examples/threaded-shared-conn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/threaded-shared-conn.c b/docs/examples/threaded-shared-conn.c index e238b952e..2eda6239d 100644 --- a/docs/examples/threaded-shared-conn.c +++ b/docs/examples/threaded-shared-conn.c @@ -117,7 +117,6 @@ int main(void) { pthread_t tid[NUM_THREADS]; int i; - int error; CURLSH *share; struct initurl url[NUM_THREADS]; @@ -132,6 +131,7 @@ 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++) { - error = pthread_join(tid[i], NULL); + pthread_join(tid[i], NULL); fprintf(stderr, "Thread %d terminated\n", i); } |