Replaced add64, add64u and add64ul with operators.
Change-Id: Ia537f83e15cb686f1b81b34d73596f4298b0a924
This commit is contained in:
+3
-3
@@ -185,9 +185,9 @@ int fs_breadwrite(void)
|
||||
if (rdwt_err < 0) break;
|
||||
|
||||
/* Update counters and pointers. */
|
||||
nrbytes -= chunk; /* bytes yet to be read */
|
||||
cum_io += chunk; /* bytes read so far */
|
||||
position = add64ul(position, chunk); /* position within the file */
|
||||
nrbytes -= chunk; /* bytes yet to be read */
|
||||
cum_io += chunk; /* bytes read so far */
|
||||
position += chunk; /* position within the file */
|
||||
}
|
||||
|
||||
fs_m_out.RES_SEEK_POS_LO = ex64lo(position);
|
||||
|
||||
@@ -119,9 +119,9 @@ int fs_bread(void)
|
||||
if (rdwt_err < 0) break;
|
||||
|
||||
/* Update counters and pointers. */
|
||||
nrbytes -= chunk; /* bytes yet to be read */
|
||||
cum_io += chunk; /* bytes read so far */
|
||||
position= add64ul(position, chunk); /* position within the file */
|
||||
nrbytes -= chunk; /* bytes yet to be read */
|
||||
cum_io += chunk; /* bytes read so far */
|
||||
position += chunk; /* position within the file */
|
||||
}
|
||||
|
||||
fs_m_out.RES_SEEK_POS_LO = ex64lo(position);
|
||||
|
||||
@@ -108,7 +108,7 @@ int read_vds(
|
||||
/* I dont need to save anything about it */
|
||||
vol_ok = TRUE;
|
||||
|
||||
offset = add64u(offset,ISO9660_MIN_BLOCK_SIZE);
|
||||
offset += ISO9660_MIN_BLOCK_SIZE;
|
||||
}
|
||||
|
||||
if (vol_ok == FALSE)
|
||||
|
||||
+3
-3
@@ -194,9 +194,9 @@ int fs_breadwrite(void)
|
||||
if (lmfs_rdwt_err() < 0) break;
|
||||
|
||||
/* Update counters and pointers. */
|
||||
nrbytes -= chunk; /* bytes yet to be read */
|
||||
cum_io += chunk; /* bytes read so far */
|
||||
position = add64ul(position, chunk); /* position within the file */
|
||||
nrbytes -= chunk; /* bytes yet to be read */
|
||||
cum_io += chunk; /* bytes read so far */
|
||||
position += chunk; /* position within the file */
|
||||
}
|
||||
|
||||
fs_m_out.RES_SEEK_POS_LO = ex64lo(position);
|
||||
|
||||
+1
-1
@@ -615,7 +615,7 @@ int actual_lseek(message *m_out, int seekfd, int seekwhence, off_t offset)
|
||||
}
|
||||
|
||||
if (offset >= 0)
|
||||
newpos = add64ul(pos, offset);
|
||||
newpos = pos + offset;
|
||||
else
|
||||
newpos = sub64ul(pos, -offset);
|
||||
|
||||
|
||||
+1
-1
@@ -181,7 +181,7 @@ int read_write(struct fproc *rfp, int rw_flag, struct filp *f,
|
||||
suspend_reopen);
|
||||
if (r >= 0) {
|
||||
cum_io = r;
|
||||
position = add64ul(position, r);
|
||||
position += r;
|
||||
r = OK;
|
||||
}
|
||||
} else if (S_ISBLK(vp->v_mode)) { /* Block special files. */
|
||||
|
||||
Reference in New Issue
Block a user