On 02/18/2013 07:09 AM, Wenchao Xia wrote: > This patch added the support of showing internal snapshots on a > single block device in hmp layer, by simply change parameter in
s/change/changing a/ > calling of qmp funtion. s/funtion/function/ > > Signed-off-by: Wenchao Xia <xiaw...@linux.vnet.ibm.com> > --- > hmp.c | 7 ++++++- > monitor.c | 6 +++--- > 2 files changed, 9 insertions(+), 4 deletions(-) > > diff --git a/hmp.c b/hmp.c > index d29787f..834ee42 100644 > --- a/hmp.c > +++ b/hmp.c > @@ -633,8 +633,10 @@ void hmp_info_snapshots(Monitor *mon, const QDict *qdict) > { > Error *err = NULL; > SnapshotInfoList *list; > + const char *device = qdict_get_try_str(qdict, "device"); > + bool has_device = device ? true : false; The prevailing style appears to be: bool has_device = !!device; -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature