[svn-commits] mmichelson: branch jrothenberger/asterisk-urgent r104613 - /team/jrothenberge...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Feb 27 11:30:36 CST 2008


Author: mmichelson
Date: Wed Feb 27 11:30:35 2008
New Revision: 104613

URL: http://svn.digium.com/view/asterisk?view=rev&rev=104613
Log:
Remove code which generates a mixed declaration and code warning


Modified:
    team/jrothenberger/asterisk-urgent/apps/app_voicemail.c

Modified: team/jrothenberger/asterisk-urgent/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/jrothenberger/asterisk-urgent/apps/app_voicemail.c?view=diff&rev=104613&r1=104612&r2=104613
==============================================================================
--- team/jrothenberger/asterisk-urgent/apps/app_voicemail.c (original)
+++ team/jrothenberger/asterisk-urgent/apps/app_voicemail.c Wed Feb 27 11:30:35 2008
@@ -3498,10 +3498,11 @@
 						/* Move the message from INBOX to URGENT folder if this is urgent! */
 						char sfn[PATH_MAX];
 						char dfn[PATH_MAX];
+						int x;
 						/* It's easier just to try to make it than to check for its existence */
 						create_dirpath(urgdir, sizeof(urgdir), vmu->context, ext, "URGENT");
 						ast_debug(5, "Created an URGENT message, moving file from %s to %s.\n",sfn,dfn);
-						int x = last_message_index(vmu, urgdir) + 1;
+						x = last_message_index(vmu, urgdir) + 1;
 						make_file(sfn, sizeof(sfn), dir, msgnum);
 						make_file(dfn, sizeof(dfn), urgdir, x);
 						RENAME(dir, x, vmu->mailbox, vmu->context, dir, dest, sfn, dfn);




More information about the svn-commits mailing list