mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -101,7 +101,7 @@ int anon_create(size_t size, int options)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int serenity_readlink(const char* path, size_t path_length, char* buffer, size_t buffer_size)
|
||||
int serenity_readlink(char const* path, size_t path_length, char* buffer, size_t buffer_size)
|
||||
{
|
||||
Syscall::SC_readlink_params small_params {
|
||||
{ path, path_length },
|
||||
|
@ -111,7 +111,7 @@ int serenity_readlink(const char* path, size_t path_length, char* buffer, size_t
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int setkeymap(const char* name, const u32* map, u32* const shift_map, const u32* alt_map, const u32* altgr_map, const u32* shift_altgr_map)
|
||||
int setkeymap(char const* name, u32 const* map, u32* const shift_map, u32 const* alt_map, u32 const* altgr_map, u32 const* shift_altgr_map)
|
||||
{
|
||||
Syscall::SC_setkeymap_params params { map, shift_map, alt_map, altgr_map, shift_altgr_map, { name, strlen(name) } };
|
||||
return syscall(SC_setkeymap, ¶ms);
|
||||
|
@ -131,10 +131,10 @@ int getkeymap(char* name_buffer, size_t name_buffer_size, u32* map, u32* shift_m
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
u16 internet_checksum(const void* ptr, size_t count)
|
||||
u16 internet_checksum(void const* ptr, size_t count)
|
||||
{
|
||||
u32 checksum = 0;
|
||||
auto* w = (const u16*)ptr;
|
||||
auto* w = (u16 const*)ptr;
|
||||
while (count > 1) {
|
||||
checksum += ntohs(*w++);
|
||||
if (checksum & 0x80000000)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue