Type accuracy in file operation routines (leftovers)

These are leftovers of 159f5fdff1.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Andrey Gursky 2015-12-19 04:03:10 +01:00 committed by Yury V. Zaytsev
parent 9ee5766748
commit 5f63997891

View File

@ -1648,7 +1648,7 @@ copy_file_file (file_op_total_context_t * tctx, file_op_context_t * ctx,
ctx->skip_all = TRUE; ctx->skip_all = TRUE;
if (return_status == FILE_SKIP) if (return_status == FILE_SKIP)
break; break;
ctx->do_append = 0; ctx->do_append = FALSE;
goto ret_fast; goto ret_fast;
} }
@ -1688,7 +1688,7 @@ copy_file_file (file_op_total_context_t * tctx, file_op_context_t * ctx,
open_flags = O_WRONLY; open_flags = O_WRONLY;
if (dst_exists) if (dst_exists)
{ {
if (ctx->do_append != 0) if (ctx->do_append)
open_flags |= O_APPEND; open_flags |= O_APPEND;
else else
open_flags |= O_CREAT | O_TRUNC; open_flags |= O_CREAT | O_TRUNC;