mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:57:35 +00:00
Everywhere: Fix spelling mistakes
This commit is contained in:
parent
168063819d
commit
10ec98dd38
56 changed files with 90 additions and 90 deletions
|
@ -54,7 +54,7 @@ int main(int argc, char** argv)
|
|||
break;
|
||||
}
|
||||
|
||||
// If pw is not NULL it means we ended prematuraly, aka. the group was found as primary group of an user
|
||||
// If pw is not NULL it means we ended prematurely, aka. the group was found as primary group of an user
|
||||
if (pw) {
|
||||
warnln("cannot remove the primary group of user '{}'", pw->pw_name);
|
||||
endpwent();
|
||||
|
|
|
@ -152,7 +152,7 @@ public:
|
|||
size_t real_n = line_subline_add(m_line, m_subline, n);
|
||||
|
||||
// If we are moving less than a screen down, just draw the extra lines
|
||||
// for efficency and more(1) compatibility.
|
||||
// for efficiency and more(1) compatibility.
|
||||
if (n < m_height - 1) {
|
||||
size_t line = m_line;
|
||||
size_t subline = m_subline;
|
||||
|
|
|
@ -29,7 +29,7 @@ static void test_getenv_preexisting()
|
|||
assert_env("HOME", "/home/anon");
|
||||
}
|
||||
|
||||
static void test_puttenv()
|
||||
static void test_putenv()
|
||||
{
|
||||
char* to_put = strdup("PUTENVTEST=HELLOPUTENV");
|
||||
int rc = putenv(to_put);
|
||||
|
@ -41,7 +41,7 @@ static void test_puttenv()
|
|||
// Do not free `to_put`!
|
||||
}
|
||||
|
||||
static void test_settenv()
|
||||
static void test_setenv()
|
||||
{
|
||||
int rc = setenv("SETENVTEST", "HELLO SETENV!", 0);
|
||||
if (rc) {
|
||||
|
@ -66,7 +66,7 @@ static void test_settenv()
|
|||
assert_env("SETENVTEST", "Goodbye, friend!");
|
||||
}
|
||||
|
||||
static void test_settenv_overwrite_empty()
|
||||
static void test_setenv_overwrite_empty()
|
||||
{
|
||||
int rc = setenv("EMPTYTEST", "Forcefully overwrite non-existing envvar", 1);
|
||||
if (rc) {
|
||||
|
@ -85,9 +85,9 @@ int main(int, char**)
|
|||
outln("Success!"); \
|
||||
}
|
||||
RUNTEST(test_getenv_preexisting);
|
||||
RUNTEST(test_puttenv);
|
||||
RUNTEST(test_settenv);
|
||||
RUNTEST(test_settenv_overwrite_empty);
|
||||
RUNTEST(test_putenv);
|
||||
RUNTEST(test_setenv);
|
||||
RUNTEST(test_setenv_overwrite_empty);
|
||||
outln("PASS");
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue