pioctl-avoid-inadvertantly-setting-new-pags-due-to-gcc-20020516

some versions of gcc compile the if used to decide whether to allocate a pag
badly. make life easier.
This commit is contained in:
Nathan Neulinger 2002-05-16 13:54:56 +00:00 committed by Derrick Brashear
parent 8251fc6871
commit 10486b5652

View File

@ -1435,7 +1435,8 @@ static PGCPAGs(avc, afun, areq, ain, aout, ainSize, aoutSize, acred)
memcpy((char *)&flag, ain, sizeof(afs_int32)); /* primary id flag */
ain += sizeof(afs_int32); /* skip id field */
/* rest is cell name, look it up */
if (flag & 0x8000) { /* XXX Use Constant XXX */
/* some versions of gcc appear to need != 0 in order to get this right */
if (flag & 0x8000 != 0) { /* XXX Use Constant XXX */
flag &= ~0x8000;
set_parent_pag = 1;
}