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
This commit is contained in:
Bart Oldeman 2007-05-14 23:53:46 +00:00
parent 46d959f0cb
commit 818e1bf0da
3 changed files with 4 additions and 4 deletions

View File

@ -649,7 +649,7 @@ VOID DoConfig(int nPass)
for (pLine = szLine;;) for (pLine = szLine;;)
{ {
if (read(nFileDesc, pLine, 1) <= 0) if (read(nFileDesc, pLine, 1) == 0)
{ {
bEof = TRUE; bEof = TRUE;
break; break;

View File

@ -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 */ /* If the fd was invalid because it was out of range or the */
/* requested file was not open, tell the caller and exit... */ /* requested file was not open, tell the caller and exit... */
/* note: an invalid fd is indicated by a 0 return */ /* 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); dir_close(fnp);
return (f_node_ptr) 0; return (f_node_ptr) 0;
@ -2174,7 +2174,7 @@ f_node_ptr xlt_fd(int fd)
if (fnp != (f_node_ptr)0) if (fnp != (f_node_ptr)0)
{ {
fmemcpy(fnp, &f_nodes[fd], sizeof(*fnp)); fmemcpy(fnp, &f_nodes[fd], sizeof(*fnp));
if (fnp->f_count <= 0) if (fnp->f_count == 0)
{ {
release_near_f_node(fnp); release_near_f_node(fnp);
fnp = (f_node_ptr) 0; fnp = (f_node_ptr) 0;

View File

@ -371,7 +371,7 @@ int int21_fat32(lregs *r)
SectorBlock->nblks, mode); SectorBlock->nblks, mode);
if (mode == DSKWRITEINT26) if (mode == DSKWRITEINT26)
if (r->AX <= 0) if (r->AX == 0)
setinvld(r->DL - 1); setinvld(r->DL - 1);
if (r->AX > 0) if (r->AX > 0)