From: Adam Dickmeiss Date: Wed, 5 Mar 2003 16:43:31 +0000 (+0000) Subject: Removed unused function tr. Fixed warning X-Git-Tag: ZEBRA.1.3.8~28 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=723f6363425041889689c16a162fc352848000bb;p=idzebra-moved-to-github.git Removed unused function tr. Fixed warning --- diff --git a/recctrl/marcread.c b/recctrl/marcread.c index c112f9c..ea1abd4 100644 --- a/recctrl/marcread.c +++ b/recctrl/marcread.c @@ -1,4 +1,4 @@ -/* $Id: marcread.c,v 1.19 2003-03-05 11:12:18 oleg Exp $ +/* $Id: marcread.c,v 1.20 2003-03-05 16:43:31 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -85,7 +85,7 @@ static data1_node *grs_read_iso2709 (struct grs_read_info *p) } res_top = data1_mk_tag (p->dh, p->mem, absynName, 0, res_root); - if (marctab = res_root->u.root.absyn->marc) + if ((marctab = res_root->u.root.absyn->marc)) { memcpy(marctab->leader, buf, 24); memcpy(marctab->implementation_codes, buf+6, 4); @@ -270,18 +270,7 @@ static char *get_data(data1_node *n, int *len) *len = strlen(r); return r; } -static char *tr(char *s, int c1, int c2) -{ - char *p = s; - - while(*p) - { - if (*p == c1) - *p = c2; - p++; - } - return s; -} + static data1_node *lookup_subfield(data1_node *node, const char *name) { data1_node *p;