diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-09-15 23:42:47 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-16 17:17:13 +0200 |
commit | dcb327a83b19a0b40854d6a645eb7f0e2761f1e2 (patch) | |
tree | fec988ab7e0946392f69d3c6d7f0943d8b5a6fb7 /Kernel/API/Syscall.h | |
parent | 9956607283c16f9e71293885bf2cda0bcfac23d5 (diff) | |
download | serenity-dcb327a83b19a0b40854d6a645eb7f0e2761f1e2.zip |
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.
Diffstat (limited to 'Kernel/API/Syscall.h')
-rw-r--r-- | Kernel/API/Syscall.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index 5ae8abbdfc..f1ba1199e6 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -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; }; |