Make sudo_type_ConvMessage and sudo_type_LogHandler static.
They are not used outside their respective compilation units.
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "sudo_python_module.h"
|
#include "sudo_python_module.h"
|
||||||
|
|
||||||
PyTypeObject *sudo_type_ConvMessage;
|
static PyTypeObject *sudo_type_ConvMessage;
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_sudo_ConvMessage__Init(PyObject *py_self, PyObject *py_args, PyObject *py_kwargs)
|
_sudo_ConvMessage__Init(PyObject *py_self, PyObject *py_args, PyObject *py_kwargs)
|
||||||
|
@@ -23,8 +23,7 @@
|
|||||||
|
|
||||||
#include "sudo_python_module.h"
|
#include "sudo_python_module.h"
|
||||||
|
|
||||||
PyObject *sudo_type_LogHandler;
|
static PyObject *sudo_type_LogHandler;
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_debug_plugin(unsigned int log_level, const char *log_message)
|
_debug_plugin(unsigned int log_level, const char *log_message)
|
||||||
|
@@ -29,9 +29,6 @@ extern PyObject *sudo_exc_PluginReject; // a reject with message
|
|||||||
extern PyObject *sudo_exc_PluginError; // an error with message
|
extern PyObject *sudo_exc_PluginError; // an error with message
|
||||||
|
|
||||||
extern PyTypeObject *sudo_type_Plugin;
|
extern PyTypeObject *sudo_type_Plugin;
|
||||||
extern PyTypeObject *sudo_type_ConvMessage;
|
|
||||||
|
|
||||||
extern PyObject *sudo_type_LogHandler;
|
|
||||||
|
|
||||||
PyObject *sudo_module_create_class(const char *class_name, PyMethodDef *class_methods,
|
PyObject *sudo_module_create_class(const char *class_name, PyMethodDef *class_methods,
|
||||||
PyObject *base_class);
|
PyObject *base_class);
|
||||||
|
Reference in New Issue
Block a user