constify some arguments to switch_console_printf and switch_cut_path and remove improper casts for the consumers of those functions.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4241 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2007-02-13 21:03:06 +00:00
1 parent 681b8e94eb
commit ceafc84ca0
7 files changed
+22 -22

No files matched your search

+4 -4
View File
@@ -496,11 +496,11 @@ SWITCH_DECLARE(unsigned int) switch_separate_string(char *buf, char delim, char
return argc;
}
SWITCH_DECLARE(char *) switch_cut_path(char *in)
SWITCH_DECLARE(const char *) switch_cut_path(const char *in)
{
char *p, *ret = in;
char delims[] = "/\\";
char *i;
const char *p, *ret = in;
const char delims[] = "/\\";
const char *i;
if (in) {
for (i = delims; *i; i++) {