1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:57:34 +00:00

Everywhere: Fix typos

Mostly in comments, but sprintf() now prints "August" instead of
"Auguest" so that's something.
This commit is contained in:
Nico Weber 2020-10-02 09:59:28 -04:00 committed by Andreas Kling
parent 7399874479
commit ef1b21004f
28 changed files with 39 additions and 39 deletions

View file

@ -365,7 +365,7 @@ void endservent()
}
// Fill the service entry buffer with the information contained
// in the currently read line, returns true if successfull,
// in the currently read line, returns true if successful,
// false if failure occurs.
static bool fill_getserv_buffers(const char* line, ssize_t read)
{
@ -376,7 +376,7 @@ static bool fill_getserv_buffers(const char* line, ssize_t read)
// This indicates an incorrect file format.
// Services file entries should always at least contain
// name and port/protocol, seperated by tabs.
// name and port/protocol, separated by tabs.
if (split_line.size() < 2) {
fprintf(stderr, "getservent(): malformed services file\n");
return false;

View file

@ -1014,7 +1014,7 @@ unsigned long long strtoull(const char* str, char** endptr, int base)
// Serenity's PRNG is not cryptographically secure. Do not rely on this for
// any real crypto! These functions (for now) are for compatibility.
// TODO: In the future, rand can be made determinstic and this not.
// TODO: In the future, rand can be made deterministic and this not.
uint32_t arc4random(void)
{
char buf[4];

View file

@ -342,7 +342,7 @@ const char* const sys_errlist[] = {
"Connection aborted",
"Connection already in progress",
"Connection reset",
"Desination address required",
"Destination address required",
"Host unreachable",
"Illegal byte sequence",
"Message size",

View file

@ -36,7 +36,7 @@ int ptrace(int request, pid_t tid, void* addr, int data)
// PT_PEEK needs special handling since the syscall wrapper
// returns the peeked value as an int, which can be negative because of the cast.
// When using PT_PEEK, the user can check if an error occured
// When using PT_PEEK, the user can check if an error occurred
// by looking at errno rather than the return value.
u32 out_data;

View file

@ -53,7 +53,7 @@ struct syslog_data {
/*
* Many of these facilities don't really make sense anymore, but we keep them
* for compatability purposes.
* for compatibility purposes.
*/
#define LOG_KERN ( 0 << 3)
#define LOG_USER ( 1 << 3)

View file

@ -182,7 +182,7 @@ size_t strftime(char* destination, size_t max_size, const char* format, const st
};
const char mon_long_names[12][10] = {
"January", "February", "March", "April", "May", "June",
"July", "Auguest", "September", "October", "November", "December"
"July", "August", "September", "October", "November", "December"
};
StringBuilder builder { max_size };