s4:scripting: Remove obsolete references to function prototypes
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 11 Jan 2024 20:56:29 +0000 (09:56 +1300)
committerJoseph Sutton <jsutton@samba.org>
Mon, 15 Jan 2024 00:48:40 +0000 (00:48 +0000)
These prototypes were removed in commit
0ffe030c0dcd46b51ffb2f11c03d5b48e93d32b9.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/scripting/bin/gen_ntstatus.py
source4/scripting/bin/gen_werror.py

index 13f5fa1c7561396ff2a9ec59fe58e2e61d83d6f7..5e79378f148b590b8ca9e531138d5ad6341d0947 100755 (executable)
@@ -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")
index 935dbde09099c21b3e95c827d0de6261f90f4736..fd3948b3b3b0ce08a57531ac5ef2c81b2acacc75 100755 (executable)
@@ -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")