diff options
author | germeier <germeier> | 2003-04-27 11:01:26 +0000 |
---|---|---|
committer | germeier <germeier> | 2003-04-27 11:01:26 +0000 |
commit | 79e1e41659396335214777f0c237252458dcbfd8 (patch) | |
tree | 8d0ade314f7af7da4f9a3a52da8ed5c13f4767f6 /libmpio/src/fat.c | |
parent | d51007358600010933f05109c9e203e87ea06c47 (diff) | |
download | mpiosh-79e1e41659396335214777f0c237252458dcbfd8.tar.gz mpiosh-79e1e41659396335214777f0c237252458dcbfd8.tar.bz2 mpiosh-79e1e41659396335214777f0c237252458dcbfd8.zip |
fixed some C code "things" found with "paranoia" CFLAGS settings
Diffstat (limited to 'libmpio/src/fat.c')
-rw-r--r-- | libmpio/src/fat.c | 12 |
1 files changed, 5 insertions, 7 deletions
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 <string.h> #include <stdlib.h> @@ -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; |