Re: [PATCH] Implement virDomainBlockStats for QEMU/KVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 26, 2008 at 03:38:56PM +0100, Jim Meyering wrote:
> diff --git a/src/qemu_driver.c b/src/qemu_driver.c
> index f97ef18..d9a7aca 100644
> --- a/src/qemu_driver.c
> +++ b/src/qemu_driver.c
> @@ -1315,8 +1315,9 @@ static void qemudDispatchVMEvent(int fd, int events, void *opaque) {
>          qemudDispatchVMFailure(driver, vm, fd);
>  }
> 
> -static int qemudMonitorCommand(struct qemud_driver *driver ATTRIBUTE_UNUSED,
> -                               struct qemud_vm *vm,
> +static int qemudMonitorCommand(const struct qemud_driver *driver
> +                               ATTRIBUTE_UNUSED,
> +                               const struct qemud_vm *vm,


I don't like having annotations for a param on a separate line, because
it doesn't read naturally. If we really need to wrap this, then lets 
follow the style of putting the return type on a line before , eg

 static int
 qemudMonitorCommand(const struct qemud_driver *driver ATTRIBUTE_UNUSED,
                     const struct qemud_vm *vm,

If it is still over 80 characters with this convention, then so be it.

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]