summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-01 07:48:29 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-01 07:48:29 +0000
commit41831cfa1ec9a17a0e152ab8abdc87c400fec69b (patch)
tree4898c3475055c09a6deedcf85c9f804df6f3f7db
parent6b716abac7babcd0d6573b16c3b66e6edf2e6d0f (diff)
downloadldetect-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--NEWS2
-rw-r--r--libldetect.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 8defa42..b69c7f7 100644
--- a/NEWS
+++ b/NEWS
@@ -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;