Fix a build error on FreeBSD.
authorRussell Bryant <russell@russellbryant.com>
Tue, 1 Dec 2009 23:38:34 +0000 (23:38 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 1 Dec 2009 23:38:34 +0000 (23:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@232012 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_lock.c

index ef8ccfa..27d199e 100644 (file)
@@ -93,7 +93,7 @@ static AST_LIST_HEAD_STATIC(locklist, lock_frame);
 static void lock_free(void *data);
 static void lock_fixup(void *data, struct ast_channel *oldchan, struct ast_channel *newchan);
 static int unloading = 0;
-static pthread_t broker_tid = -1;
+static pthread_t broker_tid = AST_PTHREADT_NULL;
 
 static struct ast_datastore_info lock_info = {
        .type = "MUTEX",