diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-14 18:28:35 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-14 18:28:35 -0600 |
commit | d40369b0e09e4e2228ebff305067ec2d99220848 (patch) | |
tree | 0839bc088f3f0b577e0badddab745fa9f3c94dd4 /libgcompat/dlmopen.c | |
parent | 28748009c0dc553e2fe5e6253e7615cf89d2b7ef (diff) | |
download | gcompat-d40369b0e09e4e2228ebff305067ec2d99220848.tar.gz gcompat-d40369b0e09e4e2228ebff305067ec2d99220848.tar.bz2 gcompat-d40369b0e09e4e2228ebff305067ec2d99220848.tar.xz gcompat-d40369b0e09e4e2228ebff305067ec2d99220848.zip |
global: Format the code consistently
* Apply clang-format.
* Change all comments to the same style.
* Add braces as dictated by the coding style guidelines.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'libgcompat/dlmopen.c')
-rw-r--r-- | libgcompat/dlmopen.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/libgcompat/dlmopen.c b/libgcompat/dlmopen.c index fecb29c..4584680 100644 --- a/libgcompat/dlmopen.c +++ b/libgcompat/dlmopen.c @@ -1,15 +1,14 @@ -#include <dlfcn.h> // dlopen -#include <stdio.h> // fprintf -#include <stdlib.h> // getenv +#include <dlfcn.h> /* dlopen */ +#include <stdio.h> /* fprintf */ +#include <stdlib.h> /* getenv */ void *dlmopen(long lmid, const char *pathname, int mode) { - if(getenv("GLIBC_FAKE_DEBUG")) - { - fprintf(stderr, "library %s was requested to load in %ld namespace", - pathname, lmid); + if (getenv("GLIBC_FAKE_DEBUG")) { + fprintf(stderr, + "library %s was requested to load in %ld namespace", + pathname, lmid); } return dlopen(pathname, mode); } - |