INN commit: trunk/nnrpd (python.c)

INN Commit rra at isc.org
Sat Aug 6 20:42:06 UTC 2011


    Date: Saturday, August 6, 2011 @ 13:42:06
  Author: iulius
Revision: 9319

fix a cast to signed, and not unsigned

Modified:
  trunk/nnrpd/python.c

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

Modified: python.c
===================================================================
--- python.c	2011-08-06 20:25:00 UTC (rev 9318)
+++ python.c	2011-08-06 20:42:06 UTC (rev 9319)
@@ -331,13 +331,13 @@
 
     while(PyDict_Next(result, &pos, &key, &value)) {
         if (!PyString_Check(key)) {
-            syslog(L_ERROR, "python access method return dictionary key %lu not a string",
+            syslog(L_ERROR, "python access method return dictionary key %ld not a string",
                    (long int) pos);
             Reply("%d Internal error (2).  Goodbye!\r\n", NNTP_FAIL_TERMINATING);
             ExitWithStats(1, false);
         }
         if (!PyString_Check(value)) {
-            syslog(L_ERROR, "python access method return dictionary value %lu not a string",
+            syslog(L_ERROR, "python access method return dictionary value %ld not a string",
                    (long int) pos);
             Reply("%d Internal error (2).  Goodbye!\r\n", NNTP_FAIL_TERMINATING);
             ExitWithStats(1, false);




More information about the inn-committers mailing list