Back out accidental change.
This commit is contained in:
parent
9015352474
commit
d3b0d3dd38
@ -1,4 +1,4 @@
|
||||
/* $Id: tif_dirinfo.c,v 1.100 2008-05-09 16:20:53 bfriesen Exp $ */
|
||||
/* $Id: tif_dirinfo.c,v 1.101 2008-05-09 16:23:29 bfriesen Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988-1997 Sam Leffler
|
||||
@ -504,13 +504,9 @@ _TIFFFindFieldByName(TIFF* tif, const char *field_name, TIFFDataType dt)
|
||||
key.field_name = (char *)field_name;
|
||||
key.field_type = dt;
|
||||
|
||||
{
|
||||
size_t tif_nfields = tif->tif_nfields;
|
||||
ret = (const TIFFField **) lfind(&pkey, tif->tif_fields,
|
||||
&tif_nfields, /* size_t pointer */
|
||||
sizeof(TIFFField *), tagNameCompare);
|
||||
tif->tif_nfields = (uint32) tif_nfields;
|
||||
}
|
||||
ret = (const TIFFField **) lfind(&pkey, tif->tif_fields,
|
||||
&tif->tif_nfields,
|
||||
sizeof(TIFFField *), tagNameCompare);
|
||||
return tif->tif_foundfield = (ret ? *ret : NULL);
|
||||
}
|
||||
|
||||
@ -904,15 +900,11 @@ TIFFFindFieldInfoByName(TIFF* tif, const char *field_name, TIFFDataType dt)
|
||||
key.field_name = (char *)field_name;
|
||||
key.field_type = dt;
|
||||
|
||||
{
|
||||
size_t tif_nfields = tif->tif_nfields;
|
||||
ret = (const TIFFFieldInfo **) lfind(&pkey,
|
||||
tif->tif_fields,
|
||||
&tif->tif_nfields,
|
||||
sizeof(TIFFFieldInfo *),
|
||||
tagNameCompare);
|
||||
tif->tif_nfields = (uint32) tif_nfields;
|
||||
}
|
||||
ret = (const TIFFFieldInfo **) lfind(&pkey,
|
||||
tif->tif_fields,
|
||||
&tif->tif_nfields,
|
||||
sizeof(TIFFFieldInfo *),
|
||||
tagNameCompare);
|
||||
return tif->tif_foundfield = (ret ? *ret : NULL);
|
||||
#endif
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user