X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-z-query.cpp;h=50dafd650b80bc47df15b56baf1f97cede8da4b7;hb=0499c317de03b020469f3122c8a1cee8bc459389;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..50dafd6 100644 --- a/src/yaz-z-query.cpp +++ b/src/yaz-z-query.cpp @@ -1,8 +1,6 @@ -/* - * Copyright (c) 1998-2007, Index Data. +/* This file is part of the yazpp toolkit. + * Copyright (C) 1998-2009 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 $ */ #include @@ -63,7 +61,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 +135,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