turn on higher warning level in msvc for the core and libteletone and resolve warnings.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@634 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-02-20 00:23:25 +00:00
parent 8d1967d7eb
commit fc341792be
20 changed files with 113 additions and 112 deletions

View File

@@ -66,11 +66,11 @@ static int switch_console_process(char *cmd)
return 1;
}
#endif
if ((arg = strchr(cmd, '\r')) || (arg = strchr(cmd, '\n'))) {
if ((arg = strchr(cmd, '\r')) != 0 || (arg = strchr(cmd, '\n')) != 0 ) {
*arg = '\0';
arg = NULL;
}
if ((arg = strchr(cmd, ' '))) {
if ((arg = strchr(cmd, ' ')) != 0) {
*arg++ = '\0';
}
if (switch_api_execute(cmd, arg, retbuf, sizeof(retbuf)) == SWITCH_STATUS_SUCCESS) {
@@ -160,8 +160,8 @@ SWITCH_DECLARE(void) switch_console_loop(void)
}
memset(&cmd, 0, sizeof(cmd));
for (x = 0; sizeof(cmd); x++) {
cmd[x] = getchar();
for (x = 0; x < sizeof(cmd); x++) {
cmd[x] = (char)getchar();
if (cmd[x] == '\n') {
cmd[x] = '\0';
break;