mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
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:
parent
9ee5766748
commit
5f63997891
@ -1648,7 +1648,7 @@ copy_file_file (file_op_total_context_t * tctx, file_op_context_t * ctx,
|
||||
ctx->skip_all = TRUE;
|
||||
if (return_status == FILE_SKIP)
|
||||
break;
|
||||
ctx->do_append = 0;
|
||||
ctx->do_append = FALSE;
|
||||
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;
|
||||
if (dst_exists)
|
||||
{
|
||||
if (ctx->do_append != 0)
|
||||
if (ctx->do_append)
|
||||
open_flags |= O_APPEND;
|
||||
else
|
||||
open_flags |= O_CREAT | O_TRUNC;
|
||||
|
Loading…
Reference in New Issue
Block a user