]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 14 Dec 2013 22:15:47 +0000 (23:15 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 14 Dec 2013 22:15:47 +0000 (23:15 +0100)
by using bitfields.

ChangeLog
grub-core/kern/i386/qemu/init.c

index d81730900176d73b4c7c2c8d1d4abf331e987415..ee26842b79eefe138d9b732da4569277d3092678 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
+       by using bitfields.
+
 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
index 09da1e97f5246e7f6af95a3b7e59c92f7d518a48..271b6fbfabdb0356981971df94a472df850e615e 100644 (file)
@@ -85,9 +85,9 @@ heap_init (grub_uint64_t addr, grub_uint64_t size, grub_memory_type_t type,
 struct resource
 {
   grub_pci_device_t dev;
-  int type;
   grub_size_t size;
-  int bar;
+  unsigned type:4;
+  unsigned bar:3;
 };
 
 struct iterator_ctx