diff options
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-x | apps/app_voicemail.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 224f78dac..803ea4c2a 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -330,7 +330,7 @@ static void apply_options(struct ast_vm_user *vmu, char *options) PGconn *dbhandler; char dboption[256]; -ast_mutex_t postgreslock; +AST_MUTEX_DEFINE_STATIC(postgreslock); static int sql_init(void) { @@ -342,8 +342,6 @@ static int sql_init(void) ast_log(LOG_WARNING, "Error Logging into database %s: %s\n",dboption,PQerrorMessage(dbhandler)); return(-1); } - ast_mutex_init(&postgreslock); - /* fprintf(stderr,"postgres login OK\n"); */ return(0); } |