Remove assignment to variables not in use.
[yaz-moved-to-github.git] / src / logrpn.c
index 1a37e0f..56dc01a 100644 (file)
@@ -1,12 +1,14 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2011 Index Data
  * See the file LICENSE for details.
  */
-
 /**
  * \file logrpn.c
  * \brief Implements Z39.50 Query Printing
  */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <stdio.h>
 #include <assert.h>
@@ -48,7 +50,7 @@ static void attrStr(Odr_int type, Odr_int value, char *str)
         if (rstr)
             sprintf(str, "relation=%s", rstr);
         else
-            sprintf(str, "relation=%d", value);
+            sprintf(str, "relation=" ODR_INT_PRINTF, value);
         break;
     case 3:
         switch (value)
@@ -170,9 +172,10 @@ static void attrStr(Odr_int type, Odr_int value, char *str)
         break;
     }
     if (*str)
-        sprintf(str + strlen(str), " (%d=%d)", type, value);
+        sprintf(str + strlen(str), " (" ODR_INT_PRINTF "=" ODR_INT_PRINTF")",
+                type, value);
     else
-        sprintf(str, "%d=%d", type, value);
+        sprintf(str, ODR_INT_PRINTF "=" ODR_INT_PRINTF, type, value);
 }
 
 /*