mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -61,7 +61,7 @@ void Service::setup_socket(SocketDescriptor& socket)
|
|||
auto un = un_optional.value();
|
||||
|
||||
// FIXME: Propagate errors
|
||||
MUST(Core::System::bind(socket_fd, (const sockaddr*)&un, sizeof(un)));
|
||||
MUST(Core::System::bind(socket_fd, (sockaddr const*)&un, sizeof(un)));
|
||||
// FIXME: Propagate errors
|
||||
MUST(Core::System::listen(socket_fd, 16));
|
||||
}
|
||||
|
@ -270,7 +270,7 @@ void Service::did_exit(int exit_code)
|
|||
activate();
|
||||
}
|
||||
|
||||
Service::Service(const Core::ConfigFile& config, StringView name)
|
||||
Service::Service(Core::ConfigFile const& config, StringView name)
|
||||
: Core::Object(nullptr)
|
||||
{
|
||||
VERIFY(config.has_group(name));
|
||||
|
|
|
@ -27,7 +27,7 @@ public:
|
|||
void save_to(JsonObject&);
|
||||
|
||||
private:
|
||||
Service(const Core::ConfigFile&, StringView name);
|
||||
Service(Core::ConfigFile const&, StringView name);
|
||||
|
||||
void spawn(int socket_fd = -1);
|
||||
|
||||
|
|
|
@ -85,14 +85,14 @@ static ErrorOr<void> determine_system_mode()
|
|||
return {};
|
||||
}
|
||||
|
||||
static void chown_wrapper(const char* path, uid_t uid, gid_t gid)
|
||||
static void chown_wrapper(char const* path, uid_t uid, gid_t gid)
|
||||
{
|
||||
int rc = chown(path, uid, gid);
|
||||
if (rc < 0 && errno != ENOENT) {
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
}
|
||||
static void chmod_wrapper(const char* path, mode_t mode)
|
||||
static void chmod_wrapper(char const* path, mode_t mode)
|
||||
{
|
||||
int rc = chmod(path, mode);
|
||||
if (rc < 0 && errno != ENOENT) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue