From 818e1bf0da46b702e01555d50f7e53d5a76eec2d Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Mon, 14 May 2007 23:53:46 +0000 Subject: [PATCH] Fix OW warnings about "unsigned int <= 0". git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1307 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/config.c | 2 +- kernel/fatfs.c | 4 ++-- kernel/inthndlr.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/config.c b/kernel/config.c index f7723b5..767788e 100644 --- a/kernel/config.c +++ b/kernel/config.c @@ -649,7 +649,7 @@ VOID DoConfig(int nPass) for (pLine = szLine;;) { - if (read(nFileDesc, pLine, 1) <= 0) + if (read(nFileDesc, pLine, 1) == 0) { bEof = TRUE; break; diff --git a/kernel/fatfs.c b/kernel/fatfs.c index 71240b0..589a4ec 100644 --- a/kernel/fatfs.c +++ b/kernel/fatfs.c @@ -355,7 +355,7 @@ f_node_ptr split_path(char * path, char * fcbname) /* If the fd was invalid because it was out of range or the */ /* requested file was not open, tell the caller and exit... */ /* note: an invalid fd is indicated by a 0 return */ - if (fnp == (f_node_ptr) 0 || fnp->f_count <= 0) + if (fnp == (f_node_ptr) 0 || fnp->f_count == 0) { dir_close(fnp); return (f_node_ptr) 0; @@ -2174,7 +2174,7 @@ f_node_ptr xlt_fd(int fd) if (fnp != (f_node_ptr)0) { fmemcpy(fnp, &f_nodes[fd], sizeof(*fnp)); - if (fnp->f_count <= 0) + if (fnp->f_count == 0) { release_near_f_node(fnp); fnp = (f_node_ptr) 0; diff --git a/kernel/inthndlr.c b/kernel/inthndlr.c index 8017ba8..3ed06bc 100644 --- a/kernel/inthndlr.c +++ b/kernel/inthndlr.c @@ -371,7 +371,7 @@ int int21_fat32(lregs *r) SectorBlock->nblks, mode); if (mode == DSKWRITEINT26) - if (r->AX <= 0) + if (r->AX == 0) setinvld(r->DL - 1); if (r->AX > 0)