Make sudo_type_ConvMessage and sudo_type_LogHandler static.

They are not used outside their respective compilation units.
This commit is contained in:
Todd C. Miller
2023-07-21 10:46:16 -06:00
parent 432ac12128
commit ba5ef624f2
3 changed files with 2 additions and 6 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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);