mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
Kernel+LibC: Pack SC_mount_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:
parent
dcb327a83b
commit
be15bd3c86
Notes:
sideshowbarker
2024-07-18 03:52:02 +09:00
Author: https://github.com/bgianfo
Commit: be15bd3c86
Pull-request: https://github.com/SerenityOS/serenity/pull/10053
2 changed files with 2 additions and 2 deletions
|
@ -723,9 +723,9 @@ int mount(int source_fd, const char* target, const char* fs_type, int flags)
|
|||
}
|
||||
|
||||
Syscall::SC_mount_params params {
|
||||
source_fd,
|
||||
{ target, strlen(target) },
|
||||
{ fs_type, strlen(fs_type) },
|
||||
source_fd,
|
||||
flags
|
||||
};
|
||||
int rc = syscall(SC_mount, ¶ms);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue