fix sign-compare issue

This commit is contained in:
lukem 2009-03-14 11:43:24 +00:00
parent 0fa70e9b6f
commit 434441debd
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: comsat.c,v 1.38 2008/07/20 01:09:06 lukem Exp $ */ /* $NetBSD: comsat.c,v 1.39 2009/03/14 11:43:24 lukem Exp $ */
/* /*
* Copyright (c) 1980, 1993 * Copyright (c) 1980, 1993
@ -36,7 +36,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
#if 0 #if 0
static char sccsid[] = "from: @(#)comsat.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "from: @(#)comsat.c 8.1 (Berkeley) 6/4/93";
#else #else
__RCSID("$NetBSD: comsat.c,v 1.38 2008/07/20 01:09:06 lukem Exp $"); __RCSID("$NetBSD: comsat.c,v 1.39 2009/03/14 11:43:24 lukem Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -208,7 +208,7 @@ mailfor(const char *name)
char maildir[MAXPATHLEN]; char maildir[MAXPATHLEN];
int l = snprintf(maildir, sizeof(maildir), ":%s/%s", int l = snprintf(maildir, sizeof(maildir), ":%s/%s",
_PATH_MAILDIR, name); _PATH_MAILDIR, name);
if (l >= sizeof(maildir) || strcmp(maildir, fn) != 0) if (l >= (int)sizeof(maildir) || strcmp(maildir, fn) != 0)
return; return;
} }
for (ep = utmp; ep != NULL; ep = ep->next) for (ep = utmp; ep != NULL; ep = ep->next)