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

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Tue Sep 13 14:43:09 UTC 2011


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
 
 /*
  * Type macros.
-- 
1.7.6




More information about the virt-tools-list mailing list