summaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-01-14 18:28:35 -0600
committerSamuel Holland <samuel@sholland.org>2018-01-14 18:28:35 -0600
commitd40369b0e09e4e2228ebff305067ec2d99220848 (patch)
tree0839bc088f3f0b577e0badddab745fa9f3c94dd4 /loader
parent28748009c0dc553e2fe5e6253e7615cf89d2b7ef (diff)
downloadgcompat-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 'loader')
-rw-r--r--loader/loader.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/loader/loader.c b/loader/loader.c
index f2942a4..979937f 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -10,14 +10,14 @@
* from the use of this software.
*/
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <limits.h>
#ifndef PATH_MAX
-#define PATH_MAX 16384
+#define PATH_MAX 16384
#endif
#ifndef LINKER
@@ -28,7 +28,8 @@
#error LIBGCOMPAT must be defined
#endif
-int main(int argc, char *argv[], char *envp[]) {
+int main(int argc, char *argv[], char *envp[])
+{
size_t i = 0;
char target[PATH_MAX];
char **new_argv = calloc(sizeof(char *), argc + 5);