diff options
-rw-r--r-- | cdr.c | 3 | ||||
-rw-r--r-- | channels/chan_sip.c | 1 |
2 files changed, 1 insertions, 3 deletions
@@ -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 { diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9e0b0665c..5cf8f6a2b 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11324,7 +11324,6 @@ restartsearch: /*! \brief restart_monitor: Start the channel monitor thread ---*/ static int restart_monitor(void) { - pthread_attr_t attr; /* If we're supposed to be stopped -- stay stopped */ if (monitor_thread == AST_PTHREADT_STOP) return 0; |