X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ztest%2Fztest.c;h=72741309706d80629bd42aec0989bd0700465db5;hp=7d497dfa9fbaf2e1dd1470c08a8c1cb14b69e291;hb=9dcf8b86675f48ecc89588960ec2b7a785aa05bc;hpb=916f3cef3434c7fc2a8e6a9e8d29eea8fb5b933d diff --git a/ztest/ztest.c b/ztest/ztest.c index 7d497df..7274130 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data. * See the file LICENSE for details. * - * $Id: ztest.c,v 1.55 2003-02-20 15:14:10 adam Exp $ + * $Id: ztest.c,v 1.56 2003-02-28 15:59:02 adam Exp $ */ /* @@ -13,9 +13,8 @@ #include #include +#include #include -#include - #include Z_GenericRecord *dummy_grs_record (int num, ODR o); @@ -35,7 +34,7 @@ int ztest_search (void *handle, bend_search_rr *rr) rr->errcode = 23; return 0; } - if (strcmp (rr->basenames[0], "Default")) + if (yaz_matchstr (rr->basenames[0], "Default")) { rr->errcode = 109; rr->errstring = rr->basenames[0];