From 633a8ada9e49346cf9c1655b02f92effb3e9bd0c Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 5 Feb 2010 14:52:24 +0100 Subject: [PATCH] Avoiding unnecessary use of pthread_exit() --- libisofs/ecma119.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libisofs/ecma119.c b/libisofs/ecma119.c index 64c5eda..203f036 100644 --- a/libisofs/ecma119.c +++ b/libisofs/ecma119.c @@ -924,7 +924,12 @@ void *write_function(void *arg) #endif iso_ring_buffer_writer_close(target->buffer, 0); + +#ifdef Libisofs_with_pthread_exiT pthread_exit(NULL); +#else + return NULL; +#endif write_error: ; if (res == ISO_CANCELED) { @@ -946,7 +951,12 @@ void *write_function(void *arg) #endif +#ifdef Libisofs_with_pthread_exiT pthread_exit(NULL); +#else + return NULL; +#endif + }