From dcfabce0e457430a96412e45701c6b0ac6bd6903 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Fri, 15 Jul 2005 00:27:41 +0000 Subject: restore count_messages for ODBC storage to proper behavior (bug #4711) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6132 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'apps') diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index ab8c89716..a20bf730a 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -992,15 +992,9 @@ yuck: return x; } -/* - * A negative return value indicates an error. - */ static int count_messages(struct ast_vm_user *vmu, char *dir) { - int res; - - res = last_message_index(vmu, dir); - return res >= 0 ? res + 1 : res; + return last_message_index(vmu, dir) + 1; } static void delete_file(char *sdir, int smsg) -- cgit v1.2.3