summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_msdosfs/check.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-02-14 12:30:30 +0000
committerkib <kib@FreeBSD.org>2010-02-14 12:30:30 +0000
commit53d879fa5d2a904194842a5da8dafd38d49957a1 (patch)
treef010d5d622bf13ee9314552bbfaa749698331ae3 /sbin/fsck_msdosfs/check.c
parentce3384ad3e81febc6f64d45a171384ba24401471 (diff)
downloadFreeBSD-src-53d879fa5d2a904194842a5da8dafd38d49957a1.zip
FreeBSD-src-53d879fa5d2a904194842a5da8dafd38d49957a1.tar.gz
Bug fixes from NetBSD
- fix sign-compare issues. - ANSIfy a couple of functions. - Remove more duplicate #includes. - Memory leak found by Coverity on NetBSD. Submitted by: Pedro F. Giffuni <giffunip tutopia com> Reviewed by: bde MFC after: 2 weeks
Diffstat (limited to 'sbin/fsck_msdosfs/check.c')
-rw-r--r--sbin/fsck_msdosfs/check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck_msdosfs/check.c b/sbin/fsck_msdosfs/check.c
index f04f6ac..e7537ba 100644
--- a/sbin/fsck_msdosfs/check.c
+++ b/sbin/fsck_msdosfs/check.c
@@ -33,7 +33,6 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
@@ -47,7 +46,8 @@ checkfilesys(const char *fname)
int dosfs;
struct bootblock boot;
struct fatEntry *fat = NULL;
- int i, finish_dosdirsection=0;
+ int finish_dosdirsection=0;
+ u_int i;
int mod = 0;
int ret = 8;
OpenPOWER on IntegriCloud