From: Joseph Sutton Date: Thu, 11 Jan 2024 20:56:29 +0000 (+1300) Subject: s4:scripting: Remove obsolete references to function prototypes X-Git-Tag: talloc-2.4.2~98 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5199d788f45579093a0e61dd73865f20b75c3fc2;p=thirdparty%2Fsamba.git s4:scripting: Remove obsolete references to function prototypes These prototypes were removed in commit 0ffe030c0dcd46b51ffb2f11c03d5b48e93d32b9. Signed-off-by: Joseph Sutton Reviewed-by: Douglas Bagnall --- diff --git a/source4/scripting/bin/gen_ntstatus.py b/source4/scripting/bin/gen_ntstatus.py index 13f5fa1c756..5e79378f148 100755 --- a/source4/scripting/bin/gen_ntstatus.py +++ b/source4/scripting/bin/gen_ntstatus.py @@ -72,9 +72,6 @@ def generatePythonFile(out_file, errors): out_file.write("#include \"lib/replace/system/python.h\"\n") out_file.write("#include \"python/py3compat.h\"\n") out_file.write("#include \"includes.h\"\n\n") - # This is needed to avoid a missing prototype error from the C - # compiler. There is never a prototype for this function, it is a - # module loaded by python with dlopen() and found with dlsym(). out_file.write("static struct PyModuleDef moduledef = {\n") out_file.write("\tPyModuleDef_HEAD_INIT,\n") out_file.write("\t.m_name = \"ntstatus\",\n") diff --git a/source4/scripting/bin/gen_werror.py b/source4/scripting/bin/gen_werror.py index 935dbde0909..fd3948b3b3b 100755 --- a/source4/scripting/bin/gen_werror.py +++ b/source4/scripting/bin/gen_werror.py @@ -70,9 +70,6 @@ def generatePythonFile(out_file, errors): out_file.write("#include \"lib/replace/system/python.h\"\n") out_file.write("#include \"python/py3compat.h\"\n") out_file.write("#include \"includes.h\"\n\n") - # This is needed to avoid a missing prototype error from the C - # compiler. There is never a prototype for this function, it is a - # module loaded by python with dlopen() and found with dlsym(). out_file.write("static struct PyModuleDef moduledef = {\n") out_file.write("\tPyModuleDef_HEAD_INIT,\n") out_file.write("\t.m_name = \"werror\",\n")