diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-03-25 22:47:46 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-03-25 22:47:46 +0200 |
| commit | cc3cf3353f23dd2f87412d42f8c3d52f873711dd (patch) | |
| tree | 94336a9ccee6451baeca51abff53da7e7e9c6230 /src/compiler.c | |
| parent | bb261ad231c3683a36d516c4caf9b2a06ce0145f (diff) | |
| download | ek-cc3cf3353f23dd2f87412d42f8c3d52f873711dd.tar.gz ek-cc3cf3353f23dd2f87412d42f8c3d52f873711dd.zip | |
add formatter
Diffstat (limited to 'src/compiler.c')
| -rw-r--r-- | src/compiler.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compiler.c b/src/compiler.c index 22c5f81..a1a5c92 100644 --- a/src/compiler.c +++ b/src/compiler.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ + #include <stdbool.h> #include <string.h> #include <unistd.h> @@ -114,7 +116,8 @@ int process_file(struct scope **scope, int public, const char *file) debug("(cwd:%s)(dir:%s)(base:%s)", cwd, dir, base); if (*dir != 0 && chdir(dir)) { - error("couldn't change to directory %s: %s", dir, strerror(errno)); + error("couldn't change to directory %s: %s", dir, strerror( + errno)); goto out; } @@ -122,7 +125,8 @@ int process_file(struct scope **scope, int public, const char *file) goto out; if (chdir(cwd)) { - error("couldn't change back to directory %s: %s\n", cwd, strerror(errno)); + error("couldn't change back to directory %s: %s\n", cwd, strerror( + errno)); goto out; } |
