INN commit: trunk/nnrpd (python.c)

INN Commit rra at isc.org
Mon Dec 17 08:45:24 UTC 2018


    Date: Monday, December 17, 2018 @ 00:45:23
  Author: iulius
Revision: 10312

Fix a const discarding when assigning a variable

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

Modified:
  trunk/nnrpd/python.c

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

Modified: python.c
===================================================================
--- python.c	2018-12-17 08:04:06 UTC (rev 10311)
+++ python.c	2018-12-17 08:45:23 UTC (rev 10312)
@@ -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