diff --git a/LICENSE b/LICENSE index 52ae7cc..a75408a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (C) 1998-2022 Index Data +Copyright (C) 1998-2025 Index Data All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/NEWS b/NEWS index ef75d0f..06934c7 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +--- 1.9.0 2025/05/06 + +Use new YAZ utility cql_transform_define_fname; +so that the cql transform handle is not reset when used. + --- 1.8.1 2022/12/04 Upgrade to autoconf 2.69. @@ -305,7 +310,7 @@ Updated voyager.xml, config.xml to use it. Default "mods" is still MODS v2. Make proxy perform keepalive when receiving SIGBUS. -For yaz-proxy, fixed problem with fixup of referenceId's. +For yaz-proxy, fixed problem with fixup of referenceId's. --- 0.7.6 2004/02/05 Internal release. @@ -331,7 +336,7 @@ Fixes for XML formatting for stylesheet conversions. SRW/SRU gateway for yaz-proxy. -Schema conversion +Schema conversion --- 0.6 2003/09/04 Third release diff --git a/src/limit-connect.cpp b/src/limit-connect.cpp index 3c589f8..227e256 100644 --- a/src/limit-connect.cpp +++ b/src/limit-connect.cpp @@ -93,9 +93,9 @@ LimitConnect::Peer **LimitConnect::Rep::lookup(const char *peername) Peer **p = &m_peers; while (*p) { - if (!strcmp((*p)->m_peername, peername)) - break; - p = &(*p)->m_next; + if (!strcmp((*p)->m_peername, peername)) + break; + p = &(*p)->m_next; } return p; } @@ -104,7 +104,7 @@ void LimitConnect::add_connect(const char *peername) { Peer **p = m_p->lookup(peername); if (!*p) - *p = new Peer(m_p->m_period, peername); + *p = new Peer(m_p->m_period, peername); (*p)->add_connect(); } @@ -112,7 +112,7 @@ int LimitConnect::get_total(const char *peername) { Peer **p = m_p->lookup(peername); if (!*p) - return 0; + return 0; return (*p)->m_bw.get_total(); } @@ -121,14 +121,14 @@ void LimitConnect::cleanup(bool all) Peer **p = &m_p->m_peers; while (*p) { - Peer *tp = *p; - if (all || (tp->m_bw.get_total() == 0)) - { - *p = tp->m_next; - delete tp; - } - else - p = &tp->m_next; + Peer *tp = *p; + if (all || (tp->m_bw.get_total() == 0)) + { + *p = tp->m_next; + delete tp; + } + else + p = &tp->m_next; } } diff --git a/src/test_query.cpp b/src/test_query.cpp index 24bd5b0..73316d3 100644 --- a/src/test_query.cpp +++ b/src/test_query.cpp @@ -28,8 +28,8 @@ int tst1(const char *query_str_in, const char *query_expected) if (strcmp(query_str_out, query_expected)) { - yaz_log(YLOG_LOG, "query mismatch out=%s expected=%s", - query_str_out, query_expected); + yaz_log(YLOG_LOG, "query mismatch out=%s expected=%s", + query_str_out, query_expected); return 0; } return 1;