X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fyaz-z-query.cpp;h=92d84d7bc229b8eb0eddc2b72bdc357e0b28bf1e;hb=0084c40d8bc6babaeb0b833b12d9cd625c807525;hp=85d496a9858c2d7393b6f7c46f8e52abe671f4ed;hpb=b68803f07a763804a784806082f484cb0c8b531a;p=yazpp-moved-to-github.git diff --git a/src/yaz-z-query.cpp b/src/yaz-z-query.cpp index 85d496a..92d84d7 100644 --- a/src/yaz-z-query.cpp +++ b/src/yaz-z-query.cpp @@ -1,10 +1,11 @@ -/* - * Copyright (c) 1998-2007, Index Data. +/* This file is part of the yazpp toolkit. + * Copyright (C) 1998-2012 Index Data and Mike Taylor * See the file LICENSE for details. - * - * $Id: yaz-z-query.cpp,v 1.21 2007-03-20 07:54:11 adam Exp $ */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -63,7 +64,7 @@ int Yaz_Z_Query::set_rpn(const char *rpn) odr_reset(odr_encode); Z_Query *query = (Z_Query*) odr_malloc(odr_encode, sizeof(*query)); query->which = Z_Query_type_1; - query->u.type_1 = p_query_rpn(odr_encode, PROTO_Z3950, rpn); + query->u.type_1 = p_query_rpn(odr_encode, rpn); if (!query->u.type_1) return -1; if (!z_Query(odr_encode, &query, 0, 0)) @@ -137,6 +138,7 @@ int Yaz_Z_Query::match(const Yaz_Z_Query *other) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab