Small optimizations
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@692 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
7bcbfa999c
commit
81654429d7
@ -241,7 +241,7 @@ STATIC int cooked_write_char(struct dhdr FAR **pdev,
|
|||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
} while (--count > 0);
|
} while (--count != 0);
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -333,7 +333,7 @@ long cooked_read(struct dhdr FAR **pdev, size_t n, char FAR *bp)
|
|||||||
break;
|
break;
|
||||||
*bp++ = c;
|
*bp++ = c;
|
||||||
xfer++;
|
xfer++;
|
||||||
if (bp[-1] == CTL_Z)
|
if ((unsigned char)c == CTL_Z)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return xfer;
|
return xfer;
|
||||||
|
Loading…
Reference in New Issue
Block a user