]> git.proxmox.com Git - mirror_qemu.git/commit
vmstate: reduce code duplication
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 3 Apr 2014 16:50:26 +0000 (19:50 +0300)
committerJuan Quintela <quintela@redhat.com>
Mon, 5 May 2014 12:15:10 +0000 (14:15 +0200)
commit35fc1f71899fd42323bd8f33da18f0211e0d2727
treebb64b0404ceb56b485a52dcdc15d2b9f79c05272
parentfdaad4715ae9e998fd0595bedfb16fdaf0c68ccc
vmstate: reduce code duplication

move size offset and number of elements math out
to functions, to reduce code duplication.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
vmstate.c