summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-05-17 22:02:10 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-05-17 22:02:10 +0200
commit8b876bd668384eaa7c8a4e58173447e52896809a (patch)
tree341b3798898b1e8a9f5ed62f7fba29e7a8eb7d6b
parentf3a31f609aa725fd79f69ea6f053bc33fff78df1 (diff)
downloadweechat-8b876bd668384eaa7c8a4e58173447e52896809a.zip
scripts: remove double return in info eval callback functions not yet implemented
-rw-r--r--src/plugins/javascript/weechat-js.cpp4
-rw-r--r--src/plugins/php/weechat-php.c4
-rw-r--r--src/plugins/tcl/weechat-tcl.c4
3 files changed, 3 insertions, 9 deletions
diff --git a/src/plugins/javascript/weechat-js.cpp b/src/plugins/javascript/weechat-js.cpp
index f24b534b5..4c9e244ad 100644
--- a/src/plugins/javascript/weechat-js.cpp
+++ b/src/plugins/javascript/weechat-js.cpp
@@ -767,11 +767,9 @@ weechat_js_info_eval_cb (const void *pointer, void *data,
(void) pointer;
(void) data;
(void) info_name;
-
(void) arguments;
- return not_implemented;
- return NULL;
+ return not_implemented;
}
/*
diff --git a/src/plugins/php/weechat-php.c b/src/plugins/php/weechat-php.c
index 23dac7dd6..ec6f7aeaa 100644
--- a/src/plugins/php/weechat-php.c
+++ b/src/plugins/php/weechat-php.c
@@ -1069,11 +1069,9 @@ weechat_php_info_eval_cb (const void *pointer, void *data,
(void) pointer;
(void) data;
(void) info_name;
-
(void) arguments;
- return not_implemented;
- return NULL;
+ return not_implemented;
}
/*
diff --git a/src/plugins/tcl/weechat-tcl.c b/src/plugins/tcl/weechat-tcl.c
index aada3d960..f0e138569 100644
--- a/src/plugins/tcl/weechat-tcl.c
+++ b/src/plugins/tcl/weechat-tcl.c
@@ -771,11 +771,9 @@ weechat_tcl_info_eval_cb (const void *pointer, void *data,
(void) pointer;
(void) data;
(void) info_name;
-
(void) arguments;
- return not_implemented;
- return NULL;
+ return not_implemented;
}
/*