[Freeswitch-svn] [commit] r7641 - freeswitch/trunk/src

Freeswitch SVN brian at freeswitch.org
Fri Feb 15 18:16:01 EST 2008


Author: brian
Date: Fri Feb 15 18:16:01 2008
New Revision: 7641

Modified:
   freeswitch/trunk/src/switch.c
   freeswitch/trunk/src/switch_ivr.c
   freeswitch/trunk/src/switch_utils.c

Log:
if and only if

Modified: freeswitch/trunk/src/switch.c
==============================================================================
--- freeswitch/trunk/src/switch.c	(original)
+++ freeswitch/trunk/src/switch.c	Fri Feb 15 18:16:01 2008
@@ -93,7 +93,7 @@
 	}
 
 	/* pull the pid from the file */
-	if(fscanf(f, "%d", &pid)!=1) {
+	if (fscanf(f, "%d", &pid)!=1) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,"Unable to get the pid!\n");
 	}
 
@@ -439,7 +439,7 @@
 	
 #ifndef WIN32
 	if (runas_user || runas_group) {
-		if(change_user_group(runas_user, runas_group) < 0) {
+		if (change_user_group(runas_user, runas_group) < 0) {
 			fprintf(stderr, "Failed to switch user / group\n" );
 			return 255;
 		}

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Fri Feb 15 18:16:01 2008
@@ -883,7 +883,7 @@
 
 		uuid = switch_channel_get_variable(channel, SWITCH_SIGNAL_BRIDGE_VARIABLE);
 
-		if(!uuid) {
+		if (!uuid) {
 			uuid = switch_channel_get_variable(channel, SWITCH_BRIDGE_VARIABLE);
 		}
 		

Modified: freeswitch/trunk/src/switch_utils.c
==============================================================================
--- freeswitch/trunk/src/switch_utils.c	(original)
+++ freeswitch/trunk/src/switch_utils.c	Fri Feb 15 18:16:01 2008
@@ -145,7 +145,7 @@
         l += 8;
         while (l >= 6) {
             out[bytes++] = switch_b64_table[(b>>(l-=6))%64];
-            if(++y != 72) {
+            if (++y != 72) {
                 continue;
             }
             //out[bytes++] = '\n';
@@ -332,7 +332,7 @@
         close(ifd);
     }
     switch_snprintf(buf, B64BUFFLEN, "/bin/cat %s | %s %s %s", filename, runtime.mailer_app, runtime.mailer_app_args, to);
-    if(system(buf)) {
+    if (system(buf)) {
         switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to execute command: %s\n", buf);
     }
 



More information about the Freeswitch-svn mailing list