Skip to content

Commit 1143431

Browse files
committed
Make sudo_type_ConvMessage and sudo_type_LogHandler static.
They are not used outside their respective compilation units. --HG-- branch : 1.9
1 parent 46159d2 commit 1143431

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

plugins/python/python_convmessage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include "sudo_python_module.h"
2525

26-
PyTypeObject *sudo_type_ConvMessage;
26+
static PyTypeObject *sudo_type_ConvMessage;
2727

2828
static PyObject *
2929
_sudo_ConvMessage__Init(PyObject *py_self, PyObject *py_args, PyObject *py_kwargs)

plugins/python/python_loghandler.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323

2424
#include "sudo_python_module.h"
2525

26-
PyObject *sudo_type_LogHandler;
27-
26+
static PyObject *sudo_type_LogHandler;
2827

2928
static void
3029
_debug_plugin(int log_level, const char *log_message)

plugins/python/sudo_python_module.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ extern PyObject *sudo_exc_PluginReject; // a reject with message
2929
extern PyObject *sudo_exc_PluginError; // an error with message
3030

3131
extern PyTypeObject *sudo_type_Plugin;
32-
extern PyTypeObject *sudo_type_ConvMessage;
33-
34-
extern PyObject *sudo_type_LogHandler;
3532

3633
PyObject *sudo_module_create_class(const char *class_name, PyMethodDef *class_methods,
3734
PyObject *base_class);

0 commit comments

Comments
 (0)