if (flush_write_file(fd) < 0)
goto report_write_error;
-#ifdef HAVE_FTRUNCATE
+#if HAVE_FTRUNCATE
if (inplace && fd != -1)
ftruncate(fd, offset);
#endif
if (delay_updates) {
int sz = (flist->count + 7) / 8;
- if (!(delayed_bits = new_array(char, sz)))
+ if (!(delayed_bits = new_array(uchar, sz)))
out_of_memory("recv_files");
memset(delayed_bits, 0, sz);
}