Merge branch 'ef/mingw-write'

* ef/mingw-write:
  mingw: remove mingw_write
  prefer xwrite instead of write
This commit is contained in:
Junio C Hamano
2014-01-27 10:44:59 -08:00
5 changed files with 4 additions and 25 deletions

View File

@ -538,7 +538,7 @@ int stream_blob_to_fd(int fd, unsigned const char *sha1, struct stream_filter *f
goto close_and_exit;
}
if (kept && (lseek(fd, kept - 1, SEEK_CUR) == (off_t) -1 ||
write(fd, "", 1) != 1))
xwrite(fd, "", 1) != 1))
goto close_and_exit;
result = 0;