diff options
author | pgen <p.gen.progs@gmail.com> | 2023-09-10 00:35:48 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2023-09-11 14:15:32 +0200 |
commit | 36881ac8835674bf5ce0112f1c5bfa7d1b1e3f27 (patch) | |
tree | 97e706c87e9189c1896b5117578f112f8ce7484d /safe.c | |
parent | b4e826f3ce669758eb2847d5d7eb65ee2c4755d0 (diff) |
Reformatting source code
Diffstat (limited to 'safe.c')
-rw-r--r-- | safe.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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; |