Omit YLOG_LOG msg
[yazpp-moved-to-github.git] / src / yaz-my-client.cpp
index 7884415..3336587 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1998-2004, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: yaz-my-client.cpp,v 1.22 2006-03-28 19:51:38 adam Exp $
+ * $Id: yaz-my-client.cpp,v 1.24 2006-10-10 13:31:49 adam Exp $
  */
 
 #include <stdlib.h>
@@ -10,9 +10,9 @@
 #include <yaz/options.h>
 #include <yaz/diagbib1.h>
 #include <yaz/marcdisp.h>
-#include <yaz++/ir-assoc.h>
-#include <yaz++/pdu-assoc.h>
-#include <yaz++/socket-manager.h>
+#include <yazpp/ir-assoc.h>
+#include <yazpp/pdu-assoc.h>
+#include <yazpp/socket-manager.h>
 
 extern "C" {
 #if HAVE_READLINE_READLINE_H
@@ -311,7 +311,7 @@ void MyClient::recv_record(Z_DatabaseRecord *record, int offset,
         if (!(*etype->fun)(odr_decode(), (char **)&rr, 0, 0))
         {
             odr_perror(odr_decode(), "Decoding constructed record.");
-            fprintf(stderr, "[Near %d]\n", odr_offset(odr_decode()));
+            fprintf(stderr, "[Near %ld]\n", (long) odr_offset(odr_decode()));
             fprintf(stderr, "Packet dump:\n---------\n");
             odr_dumpBER(stderr, (char*)record->u.octet_aligned->buf,
                         record->u.octet_aligned->len);