mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-27 13:44:16 +00:00
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:
1 parent
681b8e94eb
commit
ceafc84ca0
7 files changed
+22
-22
No files matched your search
@@ -132,14 +132,14 @@ static int switch_console_process(char *cmd)
|
||||
return 1;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(void) switch_console_printf(switch_text_channel_t channel, char *file, const char *func, int line,
|
||||
char *fmt, ...)
|
||||
SWITCH_DECLARE(void) switch_console_printf(switch_text_channel_t channel, const char *file, const char *func, int line,
|
||||
const char *fmt, ...)
|
||||
{
|
||||
char *data = NULL;
|
||||
int ret = 0;
|
||||
va_list ap;
|
||||
FILE *handle;
|
||||
char *filep = switch_cut_path(file);
|
||||
const char *filep = switch_cut_path(file);
|
||||
|
||||
va_start(ap, fmt);
|
||||
|
||||
|
||||
Reference in new issue
Block a user