Added one type cast from char to unsigned char
[yaz-moved-to-github.git] / src / querytowrbuf.c
index b686ba1..70e23df 100644 (file)
@@ -2,17 +2,17 @@
  * Copyright (C) 1995-2005, Index Data ApS
  * All rights reserved.
  *
- * $Id: querytowrbuf.c,v 1.1 2006-01-20 10:34:51 adam Exp $
+ * $Id: querytowrbuf.c,v 1.4 2006-04-19 10:05:03 adam Exp $
  */
 
-/**
- * \file querytostr.c
- * \brief Query to WRBUF (to strings)
+/** \file querytowrbuf.c
+    \brief Query to WRBUF (to strings)
  */
 
 #include <stdio.h>
 #include <assert.h>
 
+#include <yaz/logrpn.h>
 #include <yaz/querytowrbuf.h>
 
 static void yaz_term_to_wrbuf(WRBUF b, const char *term, int len)
@@ -188,7 +188,7 @@ void yaz_rpnquery_to_wrbuf(WRBUF b, const Z_RPNQuery *rpn)
     if (attrset)
     {
         ast = attrset->value;
-        wrbuf_printf(b, " @attrset %s ", attrset->desc);
+        wrbuf_printf(b, "@attrset %s ", attrset->desc);
     } 
     yaz_rpnstructure_to_wrbuf(b, rpn->RPNStructure);
     wrbuf_chop_right(b);
@@ -202,7 +202,7 @@ void yaz_query_to_wrbuf(WRBUF b, const Z_Query *q)
     {
     case Z_Query_type_1: 
     case Z_Query_type_101:
-        wrbuf_printf(b,"RPN:");
+        wrbuf_printf(b,"RPN: ");
         yaz_rpnquery_to_wrbuf(b, q->u.type_1);
         break;
     case Z_Query_type_2: