summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-03-16 17:55:53 +0000
committerRussell Bryant <russell@russellbryant.com>2008-03-16 17:55:53 +0000
commitdfe03485a645fd8cabd196e53a07a279c5b6cf34 (patch)
tree5bc6942cfab4f23c216fc8441fe87413a1d5696e /apps/app_voicemail.c
parent7ccd146656ff1fe827f7f7cc79e37095aa6c0ee4 (diff)
Remove an unnecessary thread attribute instance
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index cd1c9e8c6..8042ea6f2 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -8058,8 +8058,6 @@ static void mwi_sub_event_cb(const struct ast_event *event, void *userdata)
static void start_poll_thread(void)
{
- pthread_attr_t attr;
-
mwi_sub_sub = ast_event_subscribe(AST_EVENT_SUB, mwi_sub_event_cb, NULL,
AST_EVENT_IE_EVENTTYPE, AST_EVENT_IE_PLTYPE_UINT, AST_EVENT_MWI,
AST_EVENT_IE_END);
@@ -8073,9 +8071,7 @@ static void start_poll_thread(void)
poll_thread_run = 1;
- pthread_attr_init(&attr);
- ast_pthread_create(&poll_thread, &attr, mb_poll_thread, NULL);
- pthread_attr_destroy(&attr);
+ ast_pthread_create(&poll_thread, NULL, mb_poll_thread, NULL);
}
static void stop_poll_thread(void)