Updated information about YAZ.
[yaz-moved-to-github.git] / asn / test.c
index e61e12e..b8481af 100644 (file)
@@ -1,7 +1,7 @@
 #include <stdio.h>
-#include <odr.h>
-#include <odr_use.h>
-#include <proto.h>
+#include <yaz/odr.h>
+#include <yaz/odr_use.h>
+#include <yaz/proto.h>
 
 int main()
 {
@@ -46,8 +46,8 @@ int main()
     apt.num_attributes=0;
     apt.attributeList = 0;
     apt.term = &term;
-    term.buf = "BARFOO";
-    term.len = term.size = strlen(term.buf);
+    term.buf = (unsigned char*) "BARFOO";
+    term.len = term.size = strlen((char*)term.buf);
 
     o.buf = buf;
     o.bp=o.buf;