fix TC build (remove signed/unsigned mix warning)

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1075 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Kenneth J Davis 2004-12-19 22:37:16 +00:00
parent 4de23bcebf
commit fc19c3584f
3 changed files with 7 additions and 5 deletions

View File

@ -380,6 +380,8 @@
- update to include all CONFIG.SYS options (except ANYDOS)
* boot.asm
- use static read buffer to avoid crossing 64KB boundary
* main.c
- treat block devices returning 0 units as load failure
* oemboot.asm - add [optional] PC/MS DOS compatible boot sector
* sys.c
- incorporate changes from/for DR-DOS enhancement project

View File

@ -1444,8 +1444,8 @@ STATIC BOOL LoadDevice(PCStr p, VFP top, int mode)
{
struct dhdr FAR *dhp = MK_PTR(struct dhdr, base, next);
/* init_device returns FALSE on SUCCESS, TRUE otherwise */
if ((ret = init_device(dhp, szBuf, mode, &top)))
break;
ret = init_device(dhp, szBuf, mode, &top);
if (ret) break;
next = FP_OFF(dhp->dh_next);

View File

@ -987,7 +987,7 @@ void correct_bpb(struct bootsectortype *default_bpb,
}
/* reads in boot sector (1st SEC_SIZE bytes) from file */
void readBS(const char *bsFile, BYTE *bootsector)
void readBS(const char *bsFile, UBYTE *bootsector)
{
if (bsFile != NULL)
{
@ -1018,7 +1018,7 @@ void readBS(const char *bsFile, BYTE *bootsector)
/* write bs in bsFile to drive's boot record unmodified */
void restoreBS(const char *bsFile, int drive)
{
unsigned char bootsector[SEC_SIZE];
UBYTE bootsector[SEC_SIZE];
if (bsFile == NULL)
{
@ -1047,7 +1047,7 @@ void restoreBS(const char *bsFile, int drive)
}
/* write bootsector to file bsFile */
void saveBS(const char *bsFile, BYTE *bootsector)
void saveBS(const char *bsFile, UBYTE *bootsector)
{
if (bsFile != NULL)
{