1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 06:37:35 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -14,7 +14,7 @@
__thread char* s_dlerror_text = NULL;
__thread bool s_dlerror_retrieved = false;
static void store_error(const String& error)
static void store_error(String const& error)
{
free(s_dlerror_text);
s_dlerror_text = strdup(error.characters());
@ -41,7 +41,7 @@ char* dlerror()
return const_cast<char*>(s_dlerror_text);
}
void* dlopen(const char* filename, int flags)
void* dlopen(char const* filename, int flags)
{
auto result = __dlopen(filename, flags);
if (result.is_error()) {
@ -51,7 +51,7 @@ void* dlopen(const char* filename, int flags)
return result.value();
}
void* dlsym(void* handle, const char* symbol_name)
void* dlsym(void* handle, char const* symbol_name)
{
auto result = __dlsym(handle, symbol_name);
if (result.is_error()) {

View file

@ -17,16 +17,16 @@ __BEGIN_DECLS
#define RTLD_LOCAL 16
typedef struct __Dl_info {
const char* dli_fname;
char const* dli_fname;
void* dli_fbase;
const char* dli_sname;
char const* dli_sname;
void* dli_saddr;
} Dl_info;
int dlclose(void*);
char* dlerror(void);
void* dlopen(const char*, int);
void* dlsym(void*, const char*);
void* dlopen(char const*, int);
void* dlsym(void*, char const*);
int dladdr(void*, Dl_info*);
__END_DECLS

View file

@ -28,8 +28,8 @@ struct __Dl_info;
typedef struct __Dl_info Dl_info;
typedef Result<void, DlErrorMessage> (*DlCloseFunction)(void*);
typedef Result<void*, DlErrorMessage> (*DlOpenFunction)(const char*, int);
typedef Result<void*, DlErrorMessage> (*DlSymFunction)(void*, const char*);
typedef Result<void*, DlErrorMessage> (*DlOpenFunction)(char const*, int);
typedef Result<void*, DlErrorMessage> (*DlSymFunction)(void*, char const*);
typedef Result<void, DlErrorMessage> (*DlAddrFunction)(void*, Dl_info*);
extern "C" {