aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-10-09 08:22:14 +0100
committerRon Yorston <rmy@pobox.com>2024-10-09 08:22:14 +0100
commit9b181bf263b9d7c71b347542d945fe2467a495c6 (patch)
treefdfeab7574cde32d9b0a52a79d882dc4bf63710b /include/libbb.h
parentded78ca2656fd41f130d65345b0eb4d39b1fcbdf (diff)
downloadbusybox-w32-9b181bf263b9d7c71b347542d945fe2467a495c6.tar.gz
busybox-w32-9b181bf263b9d7c71b347542d945fe2467a495c6.tar.bz2
busybox-w32-9b181bf263b9d7c71b347542d945fe2467a495c6.zip
test: code shrink supplementary groups
Since we don't use is_in_supplementary_groups() there's no need for the cached_groupinfo structure to include the members required for its support or for them to be initialised. Saves 32 bytes.
Diffstat (limited to '')
-rw-r--r--include/libbb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index ed8892562..bc1453e12 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1268,8 +1268,12 @@ gid_t *bb_getgroups(int *ngroups, gid_t *group_array) FAST_FUNC;
1268struct cached_groupinfo { 1268struct cached_groupinfo {
1269 uid_t euid; 1269 uid_t euid;
1270 gid_t egid; 1270 gid_t egid;
1271#if !ENABLE_PLATFORM_MINGW32
1272 // If these are ever restored on Windows it will be necessary to alter
1273 // globals_misc_size()/globals_misc_copy() in ash.
1271 int ngroups; 1274 int ngroups;
1272 gid_t *supplementary_array; 1275 gid_t *supplementary_array;
1276#endif
1273}; 1277};
1274uid_t FAST_FUNC get_cached_euid(uid_t *euid); 1278uid_t FAST_FUNC get_cached_euid(uid_t *euid);
1275gid_t FAST_FUNC get_cached_egid(gid_t *egid); 1279gid_t FAST_FUNC get_cached_egid(gid_t *egid);