On 03/13/2013 12:56 PM, Joel Schopp wrote: > Add a 3 very short file wrapper functions to make code that follows more
s/a 3/3/ > readable. Also export an existing function that is currently static. > > Cc: Michael Tsirkin <m...@redhat.com> > Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com> > Signed-off-by: Joel Schopp <jsch...@linux.vnet.ibm.com> > --- > include/migration/qemu-file.h | 3 +++ > util/qemu-file.c | 30 ++++++++++++++++++++++++++++++ > 2 files changed, 33 insertions(+) > > + > +int qemu_peek_bytes(QEMUFile *f, uint8_t *buf, int size, size_t offset) Should we be using off_t instead of size_t for offset; and size_t instead of int for size (which implies ssize_t for return value)? -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature