summaryrefslogtreecommitdiff
path: root/userland/minibox/utilities/touch.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-12-12 16:03:08 +0100
committerAnton Kling <anton@kling.gg>2024-12-12 16:03:08 +0100
commitb033314bf1901d436dc71d41d5e1f37dda47e511 (patch)
tree120bd137888a7f96904a47af7d20422608ffe225 /userland/minibox/utilities/touch.c
parentdcbcdbdc5bcfb86eca05fb655e3bf009d89e39e0 (diff)
formatting: Use clang-format on all projects
This commit also add braces to all `if` statements.
Diffstat (limited to 'userland/minibox/utilities/touch.c')
-rw-r--r--userland/minibox/utilities/touch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/userland/minibox/utilities/touch.c b/userland/minibox/utilities/touch.c
index dd2f072..c9236e2 100644
--- a/userland/minibox/utilities/touch.c
+++ b/userland/minibox/utilities/touch.c
@@ -2,8 +2,9 @@
#include <fcntl.h>
int touch_main(int argc, char **argv) {
- if (argc < 2)
+ if (argc < 2) {
return 1;
+ }
int fd;
COND_PERROR_EXP(open(argv[1], O_CREAT, 0), "open", return 1)
close(fd);