[asterisk-commits] trunk r26378 - /trunk/apps/app_voicemail.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed May 10 04:38:44 MST 2006


Author: rizzo
Date: Wed May 10 06:38:43 2006
New Revision: 26378

URL: http://svn.digium.com/view/asterisk?rev=26378&view=rev
Log:
fix a couple of misindented lines;
prepare reduce nesting level in a couple of blocks by
inverting an if () statement (indentation change to be committed
separately).


Modified:
    trunk/apps/app_voicemail.c

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?rev=26378&r1=26377&r2=26378&view=diff
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Wed May 10 06:38:43 2006
@@ -6764,7 +6764,9 @@
 
 	case 2:	/* Call back */
 
-		if (!ast_strlen_zero(cid)) {
+		if (ast_strlen_zero(cid))
+			break;
+
 			ast_callerid_parse(cid, &name, &num);
 			while ((res > -1) && (res != 't')) {
 				switch(res) {
@@ -6835,20 +6837,21 @@
 							retries++;
 						if (retries > 3)
 							res = 't';
-							break; 
-
-						}
+						break; 
+
+					}
 					if (res == 't')
 						res = 0;
 					else if (res == '*')
 						res = -1;
 				}
-			}
 		break;
 
 	case 1:	/* Reply */
 		/* Send reply directly to sender */
-		if (!ast_strlen_zero(cid)) {
+		if (ast_strlen_zero(cid))
+			break;
+
 			ast_callerid_parse(cid, &name, &num);
 			if (!num) {
 				if (option_verbose > 2)
@@ -6881,7 +6884,7 @@
 				}
 			} 
 			res = 0;
-		}
+
 		break;
 	}
 



More information about the asterisk-commits mailing list