Reacted on warning of cppcheck about libburn/async.c
This commit is contained in:
parent
c11378f1a0
commit
f73698c0cb
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2011.07.12.105955"
|
#define Cdrskin_timestamP "2011.07.12.110131"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */
|
/* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */
|
||||||
|
|
||||||
/* Copyright (c) 2004 - 2006 Derek Foreman, Ben Jansens
|
/* Copyright (c) 2004 - 2006 Derek Foreman, Ben Jansens
|
||||||
Copyright (c) 2006 - 2010 Thomas Schmitt <scdbackup@gmx.net>
|
Copyright (c) 2006 - 2011 Thomas Schmitt <scdbackup@gmx.net>
|
||||||
Provided under GPL version 2 or later.
|
Provided under GPL version 2 or later.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -183,11 +183,6 @@ static void remove_worker(pthread_t th)
|
|||||||
{
|
{
|
||||||
struct w_list *a, *l = NULL;
|
struct w_list *a, *l = NULL;
|
||||||
|
|
||||||
#ifdef Libburn_detach_done_workeR
|
|
||||||
int ret;
|
|
||||||
char msg[80];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
for (a = workers; a; l = a, a = a->next)
|
for (a = workers; a; l = a, a = a->next)
|
||||||
if (a->thread == th) {
|
if (a->thread == th) {
|
||||||
if (l)
|
if (l)
|
||||||
@ -200,8 +195,12 @@ static void remove_worker(pthread_t th)
|
|||||||
/* Alternative : threads get detached and thus should
|
/* Alternative : threads get detached and thus should
|
||||||
dispose themselves.
|
dispose themselves.
|
||||||
*/
|
*/
|
||||||
ret = pthread_detach(th);
|
pthread_detach(th);
|
||||||
/*
|
/*
|
||||||
|
int ret;
|
||||||
|
char msg[80];
|
||||||
|
|
||||||
|
ret = pthread_detach(th);
|
||||||
sprintf(msg,
|
sprintf(msg,
|
||||||
"remove_workers(): pid= %lu pthread_detach(%lu)= %d",
|
"remove_workers(): pid= %lu pthread_detach(%lu)= %d",
|
||||||
(unsigned long) getpid(), (unsigned long) th, ret);
|
(unsigned long) getpid(), (unsigned long) th, ret);
|
||||||
|
Loading…
Reference in New Issue
Block a user