let compiler manage the copy in a more typesafe way

Do not use memcpy but just copy the data

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-05-06 10:34:51 +01:00 committed by Jonathon Jongsma
parent a11b785f19
commit c037c779df

View File

@ -1034,7 +1034,7 @@ RedChannel *red_channel_create(int size,
channel->refs = 1;
channel->handle_acks = handle_acks;
channel->migration_flags = migration_flags;
memcpy(&channel->channel_cbs, channel_cbs, sizeof(ChannelCbs));
channel->channel_cbs = *channel_cbs;
channel->reds = reds;
channel->core = core;