[libvirt] [PATCH libvirt-python 08/17] Import STREQ macro from libvirt
Eric Blake
eblake at redhat.com
Mon Sep 9 17:24:51 UTC 2013
On 09/09/2013 10:01 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> libvirt-override.c | 2 ++
> 1 file changed, 2 insertions(+)
Again, if we had a common internal header, we could put this there,
instead of having to re-copy it into each .c file that uses it (just
because only one does so now does not mean that we might add a use to
typewrappers.c in the future that also wants to use it...)
>
> diff --git a/libvirt-override.c b/libvirt-override.c
> index a8cf71d..6df7db0 100644
> --- a/libvirt-override.c
> +++ b/libvirt-override.c
> @@ -34,6 +34,8 @@ extern void initlibvirtmod(void);
> extern void initcygvirtmod(void);
> #endif
>
> +#define STREQ(a,b) (strcmp(a,b) == 0)
> +
> #if 0
> # define DEBUG_ERROR 1
> #endif
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130909/48994758/attachment-0001.sig>
More information about the libvir-list
mailing list