diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-09-25 13:39:41 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-09-25 13:39:41 -0400 |
commit | 097e3e2dc18091096fc846fcc15402accf906448 (patch) | |
tree | 76a9e6dcffc7130b753baf07e0fd75f6b903e9c1 | |
parent | d6f9cfcf2d3e39894f458b8b96e3fb593b523842 (diff) |
spaces to tabs
-rw-r--r-- | src/stdio/fclose.c | 2 | ||||
-rw-r--r-- | src/stdio/fscanf_s.c | 12 | ||||
-rw-r--r-- | src/stdio/printf_s.c | 12 | ||||
-rw-r--r-- | src/stdio/puts.c | 6 | ||||
-rw-r--r-- | src/stdio/scanf_s.c | 12 | ||||
-rw-r--r-- | src/stdio/sprintf_s.c | 12 | ||||
-rw-r--r-- | src/stdio/sscanf_s.c | 12 | ||||
-rw-r--r-- | src/stdio/vfscanf.c | 10 |
8 files changed, 34 insertions, 44 deletions
diff --git a/src/stdio/fclose.c b/src/stdio/fclose.c index cc02f5ff..bf40b5f8 100644 --- a/src/stdio/fclose.c +++ b/src/stdio/fclose.c @@ -44,7 +44,7 @@ int fclose(FILE *stream) RETURN_FAILURE(CONSTANT(EOF)); */ - return 0; + return 0; } /*** diff --git a/src/stdio/fscanf_s.c b/src/stdio/fscanf_s.c index a0b40ba7..28f292b3 100644 --- a/src/stdio/fscanf_s.c +++ b/src/stdio/fscanf_s.c @@ -4,13 +4,11 @@ /** read formatted input from a file stream **/ int fscanf_s(FILE * restrict stream, const char * restrict format, ...) { - __C_EXT(1, 201112L); - int retval; - va_list ap; - va_start(ap, format); - retval = vfscanf_s(stream, format, ap); - va_end(ap); - return retval; + va_list ap; + va_start(ap, format); + int ret = vfscanf_s(stream, format, ap); + va_end(ap); + return ret; } /*** diff --git a/src/stdio/printf_s.c b/src/stdio/printf_s.c index bb49bb6f..ac92ca64 100644 --- a/src/stdio/printf_s.c +++ b/src/stdio/printf_s.c @@ -4,13 +4,11 @@ /** write formatted output **/ int printf_s(const char *format, ...) { - __C_EXT(1, 201112L); - int retval; - va_list ap; - va_start(ap, format); - retval = vfprintf_s(stdout, format, ap); - va_end(ap); - return retval; + va_list ap; + va_start(ap, format); + int ret = vfprintf_s(stdout, format, ap); + va_end(ap); + return ret; } /*** diff --git a/src/stdio/puts.c b/src/stdio/puts.c index 93b98c3f..93931216 100644 --- a/src/stdio/puts.c +++ b/src/stdio/puts.c @@ -17,9 +17,9 @@ int puts(const char *s) s++; } - if (putc_unlocked('\n', stdout) == EOF) { + if (putc_unlocked('\n', stdout) == EOF) { ret = EOF; - } + } funlockfile(stdout); @@ -28,7 +28,7 @@ int puts(const char *s) RETURN_FAILURE(CONSTANT(EOF)); */ - return ret; + return ret; } /*** diff --git a/src/stdio/scanf_s.c b/src/stdio/scanf_s.c index 78ac5cca..29a3370b 100644 --- a/src/stdio/scanf_s.c +++ b/src/stdio/scanf_s.c @@ -4,13 +4,11 @@ /** read formatted input **/ int scanf_s(const char * restrict format, ...) { - __C_EXT(1, 201112L); - int retval; - va_list ap; - va_start(ap, format); - retval = vfscanf_s(stdin, format, ap); - va_end(ap); - return retval; + va_list ap; + va_start(ap, format); + int ret = vfscanf_s(stdin, format, ap); + va_end(ap); + return ret; } /*** diff --git a/src/stdio/sprintf_s.c b/src/stdio/sprintf_s.c index c103e179..06e64b1f 100644 --- a/src/stdio/sprintf_s.c +++ b/src/stdio/sprintf_s.c @@ -4,13 +4,11 @@ /** write formatted output to a string **/ int sprintf_s(char * restrict s, rsize_t n, const char * restrict format, ...) { - __C_EXT(1, 201112L); - int retval; - va_list ap; - va_start(ap, format); - retval = vsprintf(s, format, ap); - va_end(ap); - return retval; + va_list ap; + va_start(ap, format); + int ret = vsprintf(s, format, ap); + va_end(ap); + return ret; } /*** diff --git a/src/stdio/sscanf_s.c b/src/stdio/sscanf_s.c index b3824825..5c782458 100644 --- a/src/stdio/sscanf_s.c +++ b/src/stdio/sscanf_s.c @@ -4,13 +4,11 @@ /** read formatted input from a string **/ int sscanf_s(const char * restrict s, const char * restrict format, ...) { - __C_EXT(1, 201112L); - int retval; - va_list ap; - va_start(ap, format); - retval = vsscanf(s, format, ap); - va_end(ap); - return retval; + va_list ap; + va_start(ap, format); + int ret = vsscanf(s, format, ap); + va_end(ap); + return ret; } /*** diff --git a/src/stdio/vfscanf.c b/src/stdio/vfscanf.c index 99053885..430419a5 100644 --- a/src/stdio/vfscanf.c +++ b/src/stdio/vfscanf.c @@ -3,12 +3,12 @@ int vfscanf(FILE * restrict stream, const char * restrict format, va_list arg) { - struct io_options opt = { - .fnname = __func__, - .stream = stream, - }; + struct io_options opt = { + .fnname = __func__, + .stream = stream, + }; - return __scanf(&opt, format, arg); + return __scanf(&opt, format, arg); } /* |