if and only if

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7641 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-02-15 23:16:01 +00:00
parent 4981dcfb96
commit 22670165c1
3 changed files with 5 additions and 5 deletions

View File

@ -93,7 +93,7 @@ static int freeswitch_kill_background()
} }
/* pull the pid from the file */ /* 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"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,"Unable to get the pid!\n");
} }
@ -439,7 +439,7 @@ int main(int argc, char *argv[])
#ifndef WIN32 #ifndef WIN32
if (runas_user || runas_group) { 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" ); fprintf(stderr, "Failed to switch user / group\n" );
return 255; return 255;
} }

View File

@ -883,7 +883,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_session_transfer(switch_core_session_
uuid = switch_channel_get_variable(channel, SWITCH_SIGNAL_BRIDGE_VARIABLE); uuid = switch_channel_get_variable(channel, SWITCH_SIGNAL_BRIDGE_VARIABLE);
if(!uuid) { if (!uuid) {
uuid = switch_channel_get_variable(channel, SWITCH_BRIDGE_VARIABLE); uuid = switch_channel_get_variable(channel, SWITCH_BRIDGE_VARIABLE);
} }

View File

@ -145,7 +145,7 @@ SWITCH_DECLARE(switch_status_t) switch_b64_encode(unsigned char *in, switch_size
l += 8; l += 8;
while (l >= 6) { while (l >= 6) {
out[bytes++] = switch_b64_table[(b>>(l-=6))%64]; out[bytes++] = switch_b64_table[(b>>(l-=6))%64];
if(++y != 72) { if (++y != 72) {
continue; continue;
} }
//out[bytes++] = '\n'; //out[bytes++] = '\n';
@ -332,7 +332,7 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to, const char *fr
close(ifd); close(ifd);
} }
switch_snprintf(buf, B64BUFFLEN, "/bin/cat %s | %s %s %s", filename, runtime.mailer_app, runtime.mailer_app_args, to); 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); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to execute command: %s\n", buf);
} }