Signed-off-by: Álvaro Jurado <elbingmiss@gmail.com>
@@ -18,6 +18,6 @@ read(int d, void *buf, int32_t nbytes)
if(nbytes <= 0)
return 0;
- n = pread(d, buf, nbytes, ~0LL);
+ n = pread(d, buf, nbytes, -1LL);
return n;
}
@@ -15,6 +15,6 @@ write(int d, const void *buf, int32_t nbytes)
{
int n;
- n = pwrite(d, buf, nbytes, ~0LL);
+ n = pwrite(d, buf, nbytes, -1LL);