[virt-tools-list] [libosinfo] Hard-code GIBIBYTES definition

Daniel P. Berrange berrange at redhat.com
Thu Sep 15 11:52:33 UTC 2011


On Tue, Sep 13, 2011 at 05:43:09PM +0300, Zeeshan Ali (Khattak) wrote:
> From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>
> 
> GIR scanner doesn't like it and its not like this value is going to
> ever change anyways.
> ---
>  osinfo/osinfo_resources.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/osinfo/osinfo_resources.h b/osinfo/osinfo_resources.h
> index fadbee2..cf2571d 100644
> --- a/osinfo/osinfo_resources.h
> +++ b/osinfo/osinfo_resources.h
> @@ -33,7 +33,7 @@
>  #define OSINFO_ARCHITECTURE_ALL "all"
>  #define OSINFO_MEGAHERTZ        1000000
>  #define OSINFO_MEBIBYTES        1048576
> -#define OSINFO_GIBIBYTES        1024 * OSINFO_MEBIBYTES
> +#define OSINFO_GIBIBYTES        1073741824

ACK


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the virt-tools-list mailing list