Cast f_type to signed integer before comparison with negative values.

This commit is contained in:
gmcgarry 2008-09-09 00:56:23 +00:00
parent 507b8fdd96
commit 0e0358051d
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fstat.c,v 1.85 2008/07/23 00:57:53 lukem Exp $ */
/* $NetBSD: fstat.c,v 1.86 2008/09/09 00:56:23 gmcgarry Exp $ */
/*-
* Copyright (c) 1988, 1993
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\
#if 0
static char sccsid[] = "@(#)fstat.c 8.3 (Berkeley) 5/2/95";
#else
__RCSID("$NetBSD: fstat.c,v 1.85 2008/07/23 00:57:53 lukem Exp $");
__RCSID("$NetBSD: fstat.c,v 1.86 2008/09/09 00:56:23 gmcgarry Exp $");
#endif
#endif /* not lint */
@ -977,7 +977,7 @@ static void
misctrans(struct file *file)
{
PREFIX(file->f_type);
PREFIX((int)file->f_type);
pmisc(file, dtypes[file->f_type]);
}