[Asterisk-cvs] asterisk/apps app_voicemail.c,1.230,1.231

kpfleming at lists.digium.com kpfleming at lists.digium.com
Thu Jul 14 20:19:46 CDT 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv6048/apps

Modified Files:
	app_voicemail.c 
Log Message:
restore count_messages for ODBC storage to proper behavior (bug #4711)


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.230
retrieving revision 1.231
diff -u -d -r1.230 -r1.231
--- app_voicemail.c	15 Jul 2005 00:18:58 -0000	1.230
+++ app_voicemail.c	15 Jul 2005 00:27:41 -0000	1.231
@@ -992,15 +992,9 @@
 	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)




More information about the svn-commits mailing list