top: eliminate the potential warnings '-Wsign-compare'

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2022-01-25 00:00:00 -06:00 committed by Craig Small
parent 7ea6ba6d4d
commit 5f19a76c2b

View File

@ -4737,12 +4737,12 @@ static inline int wins_usrselect (const WIN_t *q, const int idx) {
case 0: // uid selection inactive case 0: // uid selection inactive
return 1; return 1;
case 'U': // match any uid case 'U': // match any uid
if (p->ruid == q->usrseluid) return q->usrselflg; if (p->ruid == (unsigned)q->usrseluid) return q->usrselflg;
if (p->suid == q->usrseluid) return q->usrselflg; if (p->suid == (unsigned)q->usrseluid) return q->usrselflg;
if (p->fuid == q->usrseluid) return q->usrselflg; if (p->fuid == (unsigned)q->usrseluid) return q->usrselflg;
// fall through... // fall through...
case 'u': // match effective uid case 'u': // match effective uid
if (p->euid == q->usrseluid) return q->usrselflg; if (p->euid == (unsigned)q->usrseluid) return q->usrselflg;
// fall through... // fall through...
default: // no match... default: // no match...
; ;