summaryrefslogtreecommitdiffstats
path: root/safe.c
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2023-09-10 00:35:48 +0200
committerpgen <p.gen.progs@gmail.com>2023-09-11 14:15:32 +0200
commit36881ac8835674bf5ce0112f1c5bfa7d1b1e3f27 (patch)
tree97e706c87e9189c1896b5117578f112f8ce7484d /safe.c
parentb4e826f3ce669758eb2847d5d7eb65ee2c4755d0 (diff)
Reformatting source code
Diffstat (limited to 'safe.c')
-rw-r--r--safe.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/safe.c b/safe.c
index 6c6357f..5b2213d 100644
--- a/safe.c
+++ b/safe.c
@@ -22,7 +22,7 @@
FILE *
fopen_safe(const char * restrict stream, const char * restrict mode)
{
- FILE * file;
+ FILE *file;
while ((file = fopen(stream, mode)) == NULL && errno == EINTR)
;
@@ -31,8 +31,9 @@ fopen_safe(const char * restrict stream, const char * restrict mode)
}
int
-tcsetattr_safe(int fildes, int optional_actions,
- const struct termios * termios_p)
+tcsetattr_safe(int fildes,
+ int optional_actions,
+ const struct termios *termios_p)
{
int res;
@@ -44,7 +45,7 @@ tcsetattr_safe(int fildes, int optional_actions,
}
int
-fputc_safe(int c, FILE * stream)
+fputc_safe(int c, FILE *stream)
{
int res;