mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: modernize send_file_end() with compound literal
Signed-off-by: Susant Sahani <ssahani@redhat.com>
This commit is contained in:
@@ -540,11 +540,11 @@ check_for_library_cancellation (void)
|
||||
int
|
||||
send_file_end (int cancel)
|
||||
{
|
||||
guestfs_chunk chunk;
|
||||
const guestfs_chunk chunk = {
|
||||
.cancel = cancel,
|
||||
.data = { .data_len = 0, .data_val = NULL }
|
||||
};
|
||||
|
||||
chunk.cancel = cancel;
|
||||
chunk.data.data_len = 0;
|
||||
chunk.data.data_val = NULL;
|
||||
return send_chunk (&chunk);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user