From: Marc Cromme Date: Thu, 14 Sep 2006 07:39:49 +0000 (+0000) Subject: const correctness of z_HTTP_header_lookup first argument 'headers' X-Git-Tag: YAZ.2.1.30~5 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=caa5ae948706a481006e6d8d2abea24dec56b672;p=yaz-moved-to-github.git const correctness of z_HTTP_header_lookup first argument 'headers' --- diff --git a/include/yaz/zgdu.h b/include/yaz/zgdu.h index dbe336b..dd09245 100644 --- a/include/yaz/zgdu.h +++ b/include/yaz/zgdu.h @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: zgdu.h,v 1.7 2006-06-02 13:08:27 adam Exp $ + * $Id: zgdu.h,v 1.8 2006-09-14 07:39:49 marc Exp $ */ /** @@ -60,7 +60,7 @@ YAZ_EXPORT void z_HTTP_header_add_content_type(ODR o, Z_HTTP_Header **hp, const char *content_type, const char *charset); -YAZ_EXPORT const char *z_HTTP_header_lookup(Z_HTTP_Header *hp, const char *n); +YAZ_EXPORT const char *z_HTTP_header_lookup(const Z_HTTP_Header *hp, const char *n); YAZ_EXPORT const char *z_HTTP_errmsg(int code); diff --git a/src/zgdu.c b/src/zgdu.c index 37f9820..6fc72f8 100644 --- a/src/zgdu.c +++ b/src/zgdu.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: zgdu.c,v 1.15 2006-06-02 13:08:27 adam Exp $ + * $Id: zgdu.c,v 1.16 2006-09-14 07:40:00 marc Exp $ */ /** @@ -179,7 +179,7 @@ void z_HTTP_header_add(ODR o, Z_HTTP_Header **hp, const char *n, (*hp)->next = 0; } -const char *z_HTTP_header_lookup(Z_HTTP_Header *hp, const char *n) +const char *z_HTTP_header_lookup(const Z_HTTP_Header *hp, const char *n) { for (; hp; hp = hp->next) if (!yaz_matchstr(hp->name, n))