From 3a53257032a0df8aa5f3b31f14a8e6f4e1f07595 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 3 Jun 2008 10:56:51 +0200 Subject: Add "const" keyword for some "char *" function arguments (core and plugins API) --- src/plugins/scripts/python/weechat-python.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/plugins/scripts/python/weechat-python.h') diff --git a/src/plugins/scripts/python/weechat-python.h b/src/plugins/scripts/python/weechat-python.h index 62833e76d..16a659664 100644 --- a/src/plugins/scripts/python/weechat-python.h +++ b/src/plugins/scripts/python/weechat-python.h @@ -26,9 +26,10 @@ extern struct t_weechat_plugin *weechat_python_plugin; extern struct t_plugin_script *python_scripts; extern struct t_plugin_script *python_current_script; -extern char *python_current_script_filename; +extern const char *python_current_script_filename; -extern void * weechat_python_exec (struct t_plugin_script *script, - int ret_type, char *function, char **argv); +extern void *weechat_python_exec (struct t_plugin_script *script, + int ret_type, const char *function, + char **argv); #endif /* weechat-perl.h */ -- cgit v1.2.3