summaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorBartosz Golaszewski2015-08-13 15:57:21 +0200
committerDenys Vlasenko2015-08-17 17:00:10 +0200
commitd077565bb27966c47ea6f0e9de092133954b5807 (patch)
tree16b326157ab4bec8ccc46890a1031bbe73afd0c0 /include/libbb.h
parentfb52769f4a18920e597359962addf60858f158b5 (diff)
downloadbusybox-d077565bb27966c47ea6f0e9de092133954b5807.zip
busybox-d077565bb27966c47ea6f0e9de092133954b5807.tar.gz
unit-tests: remove unnecesary field from struct bbunit_listelem
In the initial submission struct bbunit_listelem was manipulated by custom list functions implemented in bbunit.c. Since the tests are now added to the list by llist_add_to_end(), which allocates the llist_t objects behind the scenes, there's no need for the *next field. function old new delta unit_main 142 141 -1 bbunit_strrstr_elem 24 16 -8 bbunit_obscure_weak_pass_elem 24 16 -8 bbunit_obscure_strong_pass_elem 24 16 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-25) Total: -25 bytes Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 54d01b7..136d4fd 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1983,7 +1983,6 @@ static ALWAYS_INLINE unsigned char bb_ascii_tolower(unsigned char a)
typedef void (*bbunit_testfunc)(void);
struct bbunit_listelem {
- struct bbunit_listelem* next;
const char* name;
bbunit_testfunc testfunc;
};