libarchive: Avoid using name 'hz'

AIX system headers define the symbol 'hz' as a preprocessor macro.
This commit is contained in:
Brad King 2015-10-22 09:58:25 -04:00
parent 1bbba477c7
commit c70491d671
1 changed files with 3 additions and 3 deletions

View File

@ -418,9 +418,9 @@ deconst(const void *c)
}
static char*
xmemmem(const char *hay, const size_t hz, const char *ndl, const size_t nz)
xmemmem(const char *hay, const size_t hz_, const char *ndl, const size_t nz)
{
const char *const eoh = hay + hz;
const char *const eoh = hay + hz_;
const char *const eon = ndl + nz;
const char *hp;
const char *np;
@ -435,7 +435,7 @@ xmemmem(const char *hay, const size_t hz, const char *ndl, const size_t nz)
* that happens to begin with *NEEDLE) */
if (nz == 0UL) {
return deconst(hay);
} else if ((hay = memchr(hay, *ndl, hz)) == NULL) {
} else if ((hay = memchr(hay, *ndl, hz_)) == NULL) {
/* trivial */
return NULL;
}