aboutsummaryrefslogtreecommitdiffstats
path: root/cdr.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-11 15:22:55 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-11 15:22:55 +0000
commit2a40efea53c265bfa5d1f4599a0424544f69653c (patch)
tree9ffe556066073ba0c4a9b2e49b02184c3511ab40 /cdr.c
parent7680e34ead584e487b0e5a13ae60d7e155714411 (diff)
clean up my mess from thread-starting change
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@9528 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr.c')
-rw-r--r--cdr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cdr.c b/cdr.c
index 442de9c1f..edad68e48 100644
--- a/cdr.c
+++ b/cdr.c
@@ -1136,7 +1136,6 @@ static int do_reload(void)
int was_enabled;
int was_batchmode;
int res=0;
- pthread_attr_t attr;
ast_mutex_lock(&cdr_batch_lock);
@@ -1197,7 +1196,7 @@ static int do_reload(void)
if it does not exist */
if (enabled && batchmode && (!was_enabled || !was_batchmode) && (cdr_thread == AST_PTHREADT_NULL)) {
ast_cond_init(&cdr_pending_cond, NULL);
- if (ast_pthread_create(&cdr_thread, &attr, do_cdr, NULL) < 0) {
+ if (ast_pthread_create(&cdr_thread, NULL, do_cdr, NULL) < 0) {
ast_log(LOG_ERROR, "Unable to start CDR thread.\n");
ast_sched_del(sched, cdr_sched);
} else {