diff options
| author | H. Peter Anvin <hpa@zytor.com> | 2009-05-29 15:10:22 -0700 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-29 15:10:22 -0700 |
| commit | 46b00a1ff16e69a16fce228a6d290dca88320c87 (patch) | |
| tree | eae5530669c1f23867cb02ef281b7dc1c376e3e2 /com32/include/stdio.h | |
| parent | 6ac16e0040e436037e5b68015bc9a8c48286d05a (diff) | |
| download | syslinux-46b00a1ff16e69a16fce228a6d290dca88320c87.tar.gz | |
Run Nindent on com32/include/stdio.h
Automatically reformat com32/include/stdio.h using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/include/stdio.h')
| -rw-r--r-- | com32/include/stdio.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/com32/include/stdio.h b/com32/include/stdio.h index 39d27975..f37bdd9e 100644 --- a/com32/include/stdio.h +++ b/com32/include/stdio.h @@ -33,10 +33,10 @@ typedef struct _IO_file FILE; * error and 0 is a valid value; for FILE *, NULL (0) is error and * non-NULL are valid. */ -static __inline__ int fileno(FILE *__f) +static __inline__ int fileno(FILE * __f) { - /* This should really be intptr_t, but size_t should be the same size */ - return (int)(size_t)__f - 1; + /* This should really be intptr_t, but size_t should be the same size */ + return (int)(size_t) __f - 1; } /* This is a macro so it can be used as initializer */ @@ -52,17 +52,19 @@ __extern FILE *fopendev(const struct dev_info *, const char *); static __inline__ FILE *fdopen(int __fd, const char *__m) { - (void)__m; return __create_file(__fd); + (void)__m; + return __create_file(__fd); } -__extern int fclose(FILE *__f); + +__extern int fclose(FILE * __f); __extern int fputs(const char *, FILE *); __extern int puts(const char *); __extern int fputc(int, FILE *); #define putc(c,f) fputc((c),(f)) #define putchar(c) fputc((c),stdout) -__extern int fgetc(FILE *); -__extern char * fgets(char *, int, FILE *); +__extern int fgetc(FILE *); +__extern char *fgets(char *, int, FILE *); #define getc(f) fgetc(f) __extern size_t _fread(void *, size_t, FILE *); @@ -99,11 +101,10 @@ __extern int asprintf(char **, const char *, ...); __extern int vasprintf(char **, const char *, va_list); /* No buffering, so no flushing needed */ -static __inline__ int -fflush(FILE *__f) +static __inline__ int fflush(FILE * __f) { - (void)__f; - return 0; + (void)__f; + return 0; } __extern int sscanf(const char *, const char *, ...); |
