diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-10-01 07:48:29 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-10-01 07:48:29 +0000 |
commit | 41831cfa1ec9a17a0e152ab8abdc87c400fec69b (patch) | |
tree | 4898c3475055c09a6deedcf85c9f804df6f3f7db | |
parent | 6b716abac7babcd0d6573b16c3b66e6edf2e6d0f (diff) | |
download | ldetect-41831cfa1ec9a17a0e152ab8abdc87c400fec69b.tar ldetect-41831cfa1ec9a17a0e152ab8abdc87c400fec69b.tar.gz ldetect-41831cfa1ec9a17a0e152ab8abdc87c400fec69b.tar.bz2 ldetect-41831cfa1ec9a17a0e152ab8abdc87c400fec69b.tar.xz ldetect-41831cfa1ec9a17a0e152ab8abdc87c400fec69b.zip |
reduce structure size by packing together the bit booleans further,
which shrinks the struct size from 64 to 56 bytes (12.5%)
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | libldetect.h | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,3 +1,5 @@ +- reduce memory footprint + Version 0.10.0 - 30 September 2009, Thierry Vignaud - do not display random revisions for USB devices diff --git a/libldetect.h b/libldetect.h index d2ea217..4578496 100644 --- a/libldetect.h +++ b/libldetect.h @@ -21,11 +21,11 @@ struct pciusb_entry { unsigned short usb_port; /* USB port */ unsigned short is_pciexpress:1; /* is it PCI express */ + int already_found:1; char *module; char *text; char* class; - int already_found:1; }; struct pciusb_entries { struct pciusb_entry *entries; |