diff --git a/apps/app_hasnewvoicemail.c b/apps/app_hasnewvoicemail.c
index be73a0d105b3b55532c5f440aa71b16dfb07d0e1..f34e60372eee0c566ba6975db8fa49792f5ceaed 100644
--- a/apps/app_hasnewvoicemail.c
+++ b/apps/app_hasnewvoicemail.c
@@ -178,7 +178,7 @@ static int hasvoicemail_exec(struct ast_channel *chan, void *data)
 	return 0;
 }
 
-int acf_vmcount_exec(struct ast_channel *chan, char *cmd, char *argsstr, char *buf, size_t len)
+static int acf_vmcount_exec(struct ast_channel *chan, char *cmd, char *argsstr, char *buf, size_t len)
 {
 	struct localuser *u;
 	char *context;