summaryrefslogtreecommitdiff
path: root/src/plugins/demo
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-06-03 10:56:51 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-06-03 10:56:51 +0200
commit3a53257032a0df8aa5f3b31f14a8e6f4e1f07595 (patch)
tree23d16979c6ee884220afbe148b32981338f7f690 /src/plugins/demo
parent2b1d7df86c745367cfdf4de13629790197b523b3 (diff)
downloadweechat-3a53257032a0df8aa5f3b31f14a8e6f4e1f07595.zip
Add "const" keyword for some "char *" function arguments (core and plugins API)
Diffstat (limited to 'src/plugins/demo')
-rw-r--r--src/plugins/demo/demo.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/demo/demo.c b/src/plugins/demo/demo.c
index 2206a13c5..b0977f0da 100644
--- a/src/plugins/demo/demo.c
+++ b/src/plugins/demo/demo.c
@@ -49,8 +49,8 @@ int demo_debug = 0;
*/
int
-demo_debug_signal_debug_cb (void *data, char *signal, char *type_data,
- void *signal_data)
+demo_debug_signal_debug_cb (void *data, const char *signal,
+ const char *type_data, void *signal_data)
{
/* make C compiler happy */
(void) data;
@@ -132,7 +132,7 @@ demo_infobar_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
int
demo_buffer_input_data_cb (void *data, struct t_gui_buffer *buffer,
- char *input_data)
+ const char *input_data)
{
/* make C compiler happy */
(void) data;
@@ -223,7 +223,7 @@ demo_buffer_set_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
*/
void
-demo_infolist_print (struct t_plugin_infolist *infolist, char *item_name)
+demo_infolist_print (struct t_plugin_infolist *infolist, const char *item_name)
{
char *fields, **argv;
int i, j, argc;
@@ -357,7 +357,8 @@ demo_info_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
*/
int
-demo_signal_cb (void *data, char *signal, char *type_data, void *signal_data)
+demo_signal_cb (void *data, const char *signal, const char *type_data,
+ void *signal_data)
{
/* make C compiler happy */
(void) data;