diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-21 09:52:46 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-21 09:52:46 -0800 |
commit | ef7b330df43bca2d595386824ff266f73cc45731 (patch) | |
tree | fc26312b13390076d29e0ba2ce66711f39134c77 | |
parent | ef6cc7ce80c9ba3ff24bfd7b2374fb014efec279 (diff) |
Modernize lseek() calls
Use off_t for second argument, symbolic constant for third.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | tocutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -468,7 +468,7 @@ void TUSaveTocFile(Toc toc) Msg msg; int fid; int i; - XawTextPosition position; + off_t position; char c; if (toc->stopupdate) { toc->needscachesave = TRUE; @@ -480,7 +480,7 @@ void TUSaveTocFile(Toc toc) msg = toc->msgs[i]; if (fid < 0 && msg->changed) { fid = myopen(toc->scanfile, O_RDWR, 0666); - (void) lseek(fid, (long)position, 0); + (void) lseek(fid, position, SEEK_SET); } if (fid >= 0) { c = msg->buf[MARKPOS]; |