about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/cleanup.c4
-rw-r--r--libio/iopopen.c4
-rw-r--r--libio/stdio.h2
3 files changed, 6 insertions, 4 deletions
diff --git a/libio/cleanup.c b/libio/cleanup.c
index 1f316ebb33..4a068083d0 100644
--- a/libio/cleanup.c
+++ b/libio/cleanup.c
@@ -14,7 +14,7 @@ DEFUN_VOID(_IO_register_cleanup)
   _IO_cleanup_registration_needed = 0;
 }
 
-void (*_IO_cleanup_registration_needed)() = _IO_register_cleanup;
+void (*_IO_cleanup_registration_needed) __P((void)) = _IO_register_cleanup;
 #else
-void (*_IO_cleanup_registration_needed)() = NULL;
+void (*_IO_cleanup_registration_needed) __P((void)) = NULL;
 #endif /* _G_HAVE_ATEXIT */
diff --git a/libio/iopopen.c b/libio/iopopen.c
index b9ee737502..5b9bd4844d 100644
--- a/libio/iopopen.c
+++ b/libio/iopopen.c
@@ -84,9 +84,9 @@ DEFUN(_IO_proc_open, (fp, command, mode),
       _IO_FILE* fp AND const char *command AND const char *mode)
 {
 #if _IO_HAVE_SYS_WAIT
-  int read_or_write;
+  volatile int read_or_write;
+  volatile int parent_end, child_end;
   int pipe_fds[2];
-  int parent_end, child_end;
   _IO_pid_t child_pid;
   if (_IO_file_is_open(fp))
     return NULL;
diff --git a/libio/stdio.h b/libio/stdio.h
index 022d210999..048a11d60c 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -145,6 +145,8 @@ extern int ungetc __P ((int c, FILE* fp));
 extern int vfprintf __P ((FILE *fp, char __const *fmt0, _G_va_list));
 extern int vprintf __P ((char __const *fmt, _G_va_list));
 extern int vsprintf __P ((char* string, __const char* format, _G_va_list));
+extern void __libc_fatal __P ((__const char *__message))
+     __attribute__ ((__noreturn__));
 
 #ifndef __STRICT_ANSI__
 extern int dprintf __P ((int, __const char *, ...));