1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

Kernel+LibC: Pack SC_setsockopt_params struct tighter

Flagged by pvs-studio, ordering the members from largest to smallest
allows us to save a few bytes in the size of the struct.
This commit is contained in:
Brian Gianforcaro 2021-09-15 23:42:47 -07:00 committed by Andreas Kling
parent 9956607283
commit dcb327a83b
2 changed files with 2 additions and 2 deletions

View file

@ -300,10 +300,10 @@ struct SC_getsockopt_params {
};
struct SC_setsockopt_params {
const void* value;
int sockfd;
int level;
int option;
const void* value;
socklen_t value_size;
};