WIN32 fix.
[idzebra-moved-to-github.git] / index / zserver.c
index 12f4e5e..c2642c7 100644 (file)
@@ -3,7 +3,16 @@
  * All rights reserved.
  *
  * $Log: zserver.c,v $
- * Revision 1.79  2000-05-09 10:56:50  adam
+ * Revision 1.82  2001-07-09 23:40:09  adam
+ * WIN32 fix.
+ *
+ * Revision 1.81  2001/02/14 21:42:07  adam
+ * Fixed versions as returned in INIT response.
+ *
+ * Revision 1.80  2000/09/05 14:04:05  adam
+ * Updates for prefix 'yaz_' for YAZ log functions.
+ *
+ * Revision 1.79  2000/05/09 10:56:50  adam
  * Added call to xmalloc/nmem debugging functions.
  *
  * Revision 1.78  2000/04/05 09:49:35  adam
@@ -328,8 +337,13 @@ bend_initresult *bend_init (bend_initrequest *q)
     q->bend_fetch = bend_fetch;
     q->bend_scan = bend_scan;
 
+#if ZMBOL
     q->implementation_name = "Z'mbol Information Server";
-    q->implementation_version = "Z'mbol 1.0";
+    q->implementation_version = "Z'mbol " ZEBRAVER;
+#else
+    q->implementation_name = "Zebra Information Server";
+    q->implementation_version = "Zebra " ZEBRAVER;
+#endif
 
     logf (LOG_DEBUG, "bend_init");
 
@@ -641,7 +655,7 @@ int bend_esrequest (void *handle, bend_esrequest_rr *rr)
                                        odr_errmsg(odr_geterror(rr->decode)),
                                        odr_offset(rr->decode));
                                 yaz_log(LOG_LOG, "PDU dump:");
-                                odr_dumpBER(log_file(),
+                                odr_dumpBER(yaz_log_file(),
                                      r->u.single_ASN1_type->buf,
                                      r->u.single_ASN1_type->len);
                             }
@@ -666,7 +680,7 @@ int bend_esrequest (void *handle, bend_esrequest_rr *rr)
                                        odr_errmsg(odr_geterror(rr->decode)),
                                        odr_offset(rr->decode));
                                 yaz_log(LOG_LOG, "PDU dump:");
-                                odr_dumpBER(log_file(),
+                                odr_dumpBER(yaz_log_file(),
                                      r->u.single_ASN1_type->buf,
                                      r->u.single_ASN1_type->len);
                             }