about summary refs log tree commit diff stats
path: root/src/plugins/python_api.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-06-30 22:37:52 +0100
committerJames Booth <boothj5@gmail.com>2016-06-30 22:37:52 +0100
commit29eb843d56c2c52e9ae13144c93f094821ecff06 (patch)
treeb723d9527204c9f5849fedc2e3f2926f0cf86902 /src/plugins/python_api.c
parenta01eb5d08e1b39d60a6f8fc26e5a87ceb92ec18f (diff)
downloadprofani-tty-29eb843d56c2c52e9ae13144c93f094821ecff06.tar.gz
Revert "WIP - Unload plugin commands"
This reverts commit a01eb5d08e1b39d60a6f8fc26e5a87ceb92ec18f.
Diffstat (limited to 'src/plugins/python_api.c')
-rw-r--r--src/plugins/python_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/python_api.c b/src/plugins/python_api.c
index 356a2854..87a2b4d2 100644
--- a/src/plugins/python_api.c
+++ b/src/plugins/python_api.c
@@ -105,7 +105,7 @@ python_api_cons_bad_cmd_usage(PyObject *self, PyObject *args)
 static PyObject*
 python_api_register_command(PyObject *self, PyObject *args)
 {
-    char *command_name = NULL;
+    const char *command_name = NULL;
     int min_args = 0;
     int max_args = 0;
     PyObject *synopsis = NULL;
@@ -165,7 +165,7 @@ python_api_register_command(PyObject *self, PyObject *args)
         c_examples[len] = NULL;
 
         allow_python_threads();
-        api_register_command(plugin_name, command_name, min_args, max_args, c_synopsis,
+        api_register_command(command_name, min_args, max_args, c_synopsis,
             description, c_arguments, c_examples, p_callback, python_command_callback);
         disable_python_threads();
     }