INN commit: branches/2.6/nnrpd (python.c)

INN Commit rra at isc.org
Mon Dec 17 08:46:21 UTC 2018


    Date: Monday, December 17, 2018 @ 00:46:18
  Author: iulius
Revision: 10313

Fix a const discarding when assigning a variable

Python 3.7 changed the return value of PyUnicode_AsUTF8 from char
to const char.

Modified:
  branches/2.6/nnrpd/python.c

----------+
 python.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: python.c
===================================================================
--- python.c	2018-12-17 08:45:23 UTC (rev 10312)
+++ python.c	2018-12-17 08:46:18 UTC (rev 10313)
@@ -138,7 +138,7 @@
     PyObject    *result, *item, *proc;
     int         authnum;
     int         i;
-    char        *temp;
+    const char  *temp;
 
     PY_load_python();
     proc = PY_setup(PYTHONauthen, PYTHONmain, file);
@@ -413,7 +413,8 @@
 PY_dynamic(char *User, char *NewsGroup, int PostFlag, char **reply_message)
 {
     PyObject	*result, *proc;
-    char	*string, *temp;
+    char        *string;
+    const char  *temp;
     int		authnum;
     int		i;
 



More information about the inn-committers mailing list