]> granicus.if.org Git - gc/commit
Replace deprecated rewind to fseek in cordxtra
authorIvan Maidanski <ivmai@mail.ru>
Thu, 20 Jul 2017 08:39:29 +0000 (11:39 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 20 Jul 2017 08:39:29 +0000 (11:39 +0300)
commit40147a74e792373a0d2a27b301820c4070cfcaac
tree1f3a7a9d25885e9d7217fe66a7752d8edf37ee7b
parente33c603d93eaceadb52df57dfb0ec092e2e8fce1
Replace deprecated rewind to fseek in cordxtra

rewind (unlike fseek) does not report whether the operation failed.

* cord/cordxtra.c (CORD_from_file_lazy_inner, CORD_from_file_lazy,
CORD_from_file): Replace rewind(f) to fseek(f, 0l, SEEK_SET) with
error checking; adjust ABORT message in case of fseek and ftell failure.
cord/cordxtra.c