From 79e1e41659396335214777f0c237252458dcbfd8 Mon Sep 17 00:00:00 2001 From: germeier Date: Sun, 27 Apr 2003 11:01:26 +0000 Subject: fixed some C code "things" found with "paranoia" CFLAGS settings --- libmpio/src/fat.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'libmpio/src/fat.c') diff --git a/libmpio/src/fat.c b/libmpio/src/fat.c index 27974cd..cff3084 100644 --- a/libmpio/src/fat.c +++ b/libmpio/src/fat.c @@ -1,6 +1,6 @@ /* * - * $Id: fat.c,v 1.1 2003/04/23 08:34:15 crunchy Exp $ + * $Id: fat.c,v 1.2 2003/04/27 11:01:29 germeier Exp $ * * Library for USB MPIO-* * @@ -26,6 +26,7 @@ #include "fat.h" #include "io.h" #include "debug.h" +#include "directory.h" #include #include @@ -338,7 +339,7 @@ mpio_bootblocks_read (mpio_t *m, mpio_mem_t mem) return 1; } - if (error=mpio_mbr_eval(sm)) + if ((error=mpio_mbr_eval(sm))) { debug("problem with the MBR (#%d), so I won't try to access the card any" "further.\n", error); @@ -352,7 +353,7 @@ mpio_bootblocks_read (mpio_t *m, mpio_mem_t mem) return 1; } - if (error=mpio_pbr_eval(sm)) + if ((error=mpio_pbr_eval(sm))) { debug("problem with the PBR (#%d), so I won't try to access the card any" "further.\n", error); @@ -365,7 +366,6 @@ mpio_bootblocks_read (mpio_t *m, mpio_mem_t mem) mpio_fatentry_t * mpio_fatentry_new(mpio_t *m, mpio_mem_t mem, DWORD sector, BYTE ftype) { - mpio_smartmedia_t *sm; mpio_fatentry_t *new; new = malloc (sizeof(mpio_fatentry_t)); @@ -432,7 +432,7 @@ mpio_fat_read (mpio_t *m, mpio_mem_t mem, { mpio_smartmedia_t *sm; BYTE recvbuff[SECTOR_SIZE]; - int i; + DWORD i; if (mem == MPIO_INTERNAL_MEM) { @@ -665,9 +665,7 @@ mpio_fat_free_clusters(mpio_t *m, mpio_mem_t mem) { mpio_smartmedia_t *sm; mpio_fatentry_t *f; - int i; int e = 0; - int fsize; if (mem == MPIO_INTERNAL_MEM) sm = &m->internal; if (mem == MPIO_EXTERNAL_MEM) sm = &m->external; -- cgit v1.2.3