[libvirt] [PATCH 25/30] macvtap: Remove virConnectPtr from ReportError
Eric Blake
eblake at redhat.com
Mon Apr 5 17:18:45 UTC 2010
On 04/04/2010 11:36 AM, Matthias Bolte wrote:
> Also rename ReportError to macvtapError.
> ---
> src/qemu/qemu_conf.c | 2 +-
> src/util/macvtap.c | 63 +++++++++++++++++++++++---------------------------
> src/util/macvtap.h | 3 +-
> 3 files changed, 31 insertions(+), 37 deletions(-)
>
> +++ b/src/util/macvtap.c
> @@ -49,9 +49,9 @@
>
> # define VIR_FROM_THIS VIR_FROM_NET
>
> -# define ReportError(conn, code, ...) \
> - virReportErrorHelper(conn, VIR_FROM_NET, code, __FILE__, \
> - __FUNCTION__, __LINE__, __VA_ARGS__)
> +# define macvtapError(code, ...) \
> + virReportErrorHelper(NULL, VIR_FROM_NET, code, __FILE__, \
> + __FUNCTION__, __LINE__, __VA_ARGS__)
Missing the corresponding cfg.mk change to match the rename.
> static int
> -getIfIndex(virConnectPtr conn,
> +getIfIndex(int reportError,
This would be better as bool, not int.
> @@ -713,7 +708,7 @@ openMacvtapTap(virConnectPtr conn,
> *res_ifname = NULL;
>
> if (tgifname) {
> - if(getIfIndex(NULL, tgifname, &ifindex) == 0) {
> + if(getIfIndex(0, tgifname, &ifindex) == 0) {
...with uses like this using false rather than 0.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 323 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100405/0d872a52/attachment-0001.sig>
More information about the libvir-list
mailing list