mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 22:05:06 +00:00
Kernel: Add some implied auto qualifiers
This commit is contained in:
parent
9346b9589f
commit
04d75f4ff9
11 changed files with 30 additions and 30 deletions
|
@ -244,8 +244,8 @@ int strcmp(const char* s1, const char* s2)
|
|||
|
||||
int memcmp(const void* v1, const void* v2, size_t n)
|
||||
{
|
||||
auto* s1 = (const u8*)v1;
|
||||
auto* s2 = (const u8*)v2;
|
||||
auto const* s1 = (const u8*)v1;
|
||||
auto const* s2 = (const u8*)v2;
|
||||
while (n-- > 0) {
|
||||
if (*s1++ != *s2++)
|
||||
return s1[-1] < s2[-1] ? -1 : 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue