Corrections to get past turbo c warnings.

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@764 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2004-01-31 15:04:09 +00:00
parent e7f0852dbd
commit 272f86af3d
3 changed files with 4 additions and 3 deletions

View File

@ -128,6 +128,7 @@ struct lfn_entry {
/* */
#ifdef WITHFAT32
struct dpb;
CLUSTER getdstart(struct dpb FAR *dpbp, struct dirent *dentry);
void setdstart(struct dpb FAR *dpbp, struct dirent *dentry, CLUSTER value);
BOOL checkdstart(struct dpb FAR *dpbp, struct dirent *dentry, CLUSTER value);

View File

@ -61,9 +61,9 @@ struct buffer FAR *getFATblock(ULONG clussec, struct dpb FAR * dpbp)
{
put_string("run CHKDSK: trying to access invalid cluster 0x");
#ifdef WITHFAT32
put_unsigned(clussec >> 16, 16, 4);
put_unsigned((unsigned)(clussec >> 16), 16, 4);
#endif
put_unsigned(clussec & 0xffffu, 16, 4);
put_unsigned((unsigned)(clussec & 0xffffu), 16, 4);
put_console('\n');
return NULL;
}

View File

@ -512,7 +512,7 @@ VOID CalculateFATData(ddt FAR * pddt, ULONG NumSectors, UBYTE FileSystem)
nsector = 16;
if (sz_gb <= 8) /* disks up to 8 GB, 4K cluster */
nsector = 8;
if (NumSectors <= 532480) /* disks up to 260 MB, 0.5K cluster */
if (NumSectors <= 532480UL) /* disks up to 260 MB, 0.5K cluster */
nsector = 1;
defbpb->bpb_nsector = nsector;
do