mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-22 13:24:28 +02:00
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:
parent
e7f0852dbd
commit
272f86af3d
@ -128,6 +128,7 @@ struct lfn_entry {
|
|||||||
/* */
|
/* */
|
||||||
|
|
||||||
#ifdef WITHFAT32
|
#ifdef WITHFAT32
|
||||||
|
struct dpb;
|
||||||
CLUSTER getdstart(struct dpb FAR *dpbp, struct dirent *dentry);
|
CLUSTER getdstart(struct dpb FAR *dpbp, struct dirent *dentry);
|
||||||
void setdstart(struct dpb FAR *dpbp, struct dirent *dentry, CLUSTER value);
|
void setdstart(struct dpb FAR *dpbp, struct dirent *dentry, CLUSTER value);
|
||||||
BOOL checkdstart(struct dpb FAR *dpbp, struct dirent *dentry, CLUSTER value);
|
BOOL checkdstart(struct dpb FAR *dpbp, struct dirent *dentry, CLUSTER value);
|
||||||
|
@ -61,9 +61,9 @@ struct buffer FAR *getFATblock(ULONG clussec, struct dpb FAR * dpbp)
|
|||||||
{
|
{
|
||||||
put_string("run CHKDSK: trying to access invalid cluster 0x");
|
put_string("run CHKDSK: trying to access invalid cluster 0x");
|
||||||
#ifdef WITHFAT32
|
#ifdef WITHFAT32
|
||||||
put_unsigned(clussec >> 16, 16, 4);
|
put_unsigned((unsigned)(clussec >> 16), 16, 4);
|
||||||
#endif
|
#endif
|
||||||
put_unsigned(clussec & 0xffffu, 16, 4);
|
put_unsigned((unsigned)(clussec & 0xffffu), 16, 4);
|
||||||
put_console('\n');
|
put_console('\n');
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -512,7 +512,7 @@ VOID CalculateFATData(ddt FAR * pddt, ULONG NumSectors, UBYTE FileSystem)
|
|||||||
nsector = 16;
|
nsector = 16;
|
||||||
if (sz_gb <= 8) /* disks up to 8 GB, 4K cluster */
|
if (sz_gb <= 8) /* disks up to 8 GB, 4K cluster */
|
||||||
nsector = 8;
|
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;
|
nsector = 1;
|
||||||
defbpb->bpb_nsector = nsector;
|
defbpb->bpb_nsector = nsector;
|
||||||
do
|
do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user