Lots of trivial tweaks to minimize compiler warnings, especially on 64-bit platform: Added missing type casts, changed types, added missing NULL checks.

This commit is contained in:
Peter Olsson
2014-01-22 22:28:53 +01:00
parent 643c88f49b
commit 084e245085
57 changed files with 226 additions and 216 deletions

View File

@@ -724,7 +724,7 @@ SWITCH_DECLARE(unsigned char) switch_console_complete(const char *line, const ch
}
if (!zstr(cursor) && !zstr(line)) {
pos = (cursor - line);
pos = (int)(cursor - line);
}
h.out = console_out;
@@ -783,7 +783,7 @@ SWITCH_DECLARE(unsigned char) switch_console_complete(const char *line, const ch
buf = lp + 1;
}
h.len = strlen(buf);
h.len = (int)strlen(buf);
if (h.out) {
fprintf(h.out, "\n\n");