From: Liu Aleaxander Date: Tue, 9 Jun 2009 22:05:04 +0000 (+0800) Subject: Core:EXTLINUX: clean the WARNINGs X-Git-Tag: syslinux-4.00-pre1~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5bae1d2de9f1f271750d9c0479ec5a68effa2da6;p=profile%2Fivi%2Fsyslinux.git Core:EXTLINUX: clean the WARNINGs --- diff --git a/core/ext2.c b/core/ext2.c index cc60bf9..7980930 100644 --- a/core/ext2.c +++ b/core/ext2.c @@ -25,7 +25,7 @@ struct open_file_t { extern char Files[MAX_OPEN * sizeof(struct open_file_t)]; extern char ThisInode[128]; -struct ext2_inode *this_inode = ThisInode; +struct ext2_inode *this_inode = (struct ext2_inode *)ThisInode; struct ext2_super_block *sb; extern uint16_t ClustByteShift, ClustShift; @@ -530,7 +530,7 @@ void getfssec(com32sys_t *regs) if (bytes_read >= file->file_bytesleft) { bytes_read = file->file_bytesleft; - regs->esi.w[0] = NULL; /* do close the file for asm function*/ + regs->esi.w[0] = 0; /* do close the file for asm function*/ } file->file_bytesleft -= bytes_read; @@ -559,8 +559,8 @@ void getfssec_ext(char *buf, struct open_file_t *file, * so we just do like: * regs.ebx.w[0] = buf; */ - regs.ebx.w[0] = buf; - regs.esi.w[0] = file; + regs.ebx.w[0] = OFFS_WRT(buf, 0); + regs.esi.w[0] = OFFS_WRT(file, 0); regs.ecx.w[0] = sectors; getfssec(®s); @@ -677,7 +677,7 @@ void searchdir(com32sys_t * regs) uint8_t file_mode; uint8_t SymlinkCtr = MAX_SYMLINKS; uint32_t inr = CurrentDir; - uint32_t ThisDir; + uint32_t ThisDir = CurrentDir; uint32_t file_len; char *filename = (char *)MK_PTR(regs->ds, regs->edi.w[0]); @@ -750,7 +750,7 @@ void searchdir(com32sys_t * regs) done: regs->eax.l = file_len; - regs->esi.w[0] = file; + regs->esi.w[0] = OFFS_WRT(file, 0); }