Module Name: src
Committed By: tsutsui
Date: Sat Apr 18 11:30:30 UTC 2009
Modified Files:
src/usr.bin/crunch/crunchide: exec_ecoff.c
Log Message:
Fix another -Wsign-compare issue.
XXX: is it really worth to keep non native aout/coff/ecoff support here?
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/crunch/crunchide/exec_ecoff.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/crunch/crunchide/exec_ecoff.c
diff -u src/usr.bin/crunch/crunchide/exec_ecoff.c:1.6 src/usr.bin/crunch/crunchide/exec_ecoff.c:1.7
--- src/usr.bin/crunch/crunchide/exec_ecoff.c:1.6 Sat Jul 26 20:34:12 2003
+++ src/usr.bin/crunch/crunchide/exec_ecoff.c Sat Apr 18 11:30:30 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_ecoff.c,v 1.6 2003/07/26 20:34:12 salo Exp $ */
+/* $NetBSD: exec_ecoff.c,v 1.7 2009/04/18 11:30:30 tsutsui Exp $ */
/*
* Copyright (c) 1997 Christopher G. Demetriou
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: exec_ecoff.c,v 1.6 2003/07/26 20:34:12 salo Exp $");
+__RCSID("$NetBSD: exec_ecoff.c,v 1.7 2009/04/18 11:30:30 tsutsui Exp $");
#endif
#include <sys/types.h>
@@ -64,7 +64,7 @@
*/
if (fstat(fd, &sb) == -1)
return 0;
- if (sb.st_size < sizeof eh)
+ if (sb.st_size < (off_t)sizeof eh)
return 0;
if (read(fd, &eh, sizeof eh) != sizeof eh)
return 0;