plugins/python: add missing annotations to help cpychecker

This commit is contained in:
Robert Manner
2020-02-13 17:31:27 +01:00
committed by Todd C. Miller
parent 43e256e34f
commit b2ae79c2be
2 changed files with 2 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ void python_plugin_deinit(struct PluginContext *plugin_ctx);
int python_plugin_show_version(struct PluginContext *plugin_ctx, int python_plugin_show_version(struct PluginContext *plugin_ctx,
const char *python_callback_name, int isVerbose); const char *python_callback_name, int isVerbose);
CPYCHECKER_STEALS_REFERENCE_TO_ARG(3)
void python_plugin_close(struct PluginContext *plugin_ctx, const char *callback_name, void python_plugin_close(struct PluginContext *plugin_ctx, const char *callback_name,
PyObject *py_args); PyObject *py_args);

View File

@@ -502,6 +502,7 @@ cleanup:
debug_return_ptr(py_class); debug_return_ptr(py_class);
} }
CPYCHECKER_STEALS_REFERENCE_TO_ARG(3)
void void
sudo_module_register_enum(PyObject *py_module, const char *enum_name, PyObject *py_constants_dict) sudo_module_register_enum(PyObject *py_module, const char *enum_name, PyObject *py_constants_dict)
{ {