about summary refs log tree commit diff
path: root/hurd
diff options
context:
space:
mode:
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurd.h7
-rw-r--r--hurd/set-host.c2
-rw-r--r--hurd/vpprintf.c14
3 files changed, 14 insertions, 9 deletions
diff --git a/hurd/hurd.h b/hurd/hurd.h
index 7e72bf6cf3..eb445d481a 100644
--- a/hurd/hurd.h
+++ b/hurd/hurd.h
@@ -303,4 +303,11 @@ extern int hurd_check_cancel (void);
 extern io_t __getdport (int fd), getdport (int fd);
 
 
+#include <stdarg.h>
+
+/* Write formatted output to PORT, a Mach port supporting the i/o protocol,
+   according to the format string FORMAT, using the argument list in ARG.  */
+int vpprintf (io_t port, const char *format, va_list arg);
+
+
 #endif	/* hurd.h */
diff --git a/hurd/set-host.c b/hurd/set-host.c
index 5c905d8f04..eee50fc08e 100644
--- a/hurd/set-host.c
+++ b/hurd/set-host.c
@@ -28,7 +28,7 @@ _hurd_set_host_config (const char *item, const char *value, size_t valuelen)
   mach_msg_type_number_t nwrote;
   file_t new, dir;
 
-  dir = __file_name_split (item, &item);
+  dir = __file_name_split (item, (char **)&item);
   if (dir == MACH_PORT_NULL)
     return -1;
 
diff --git a/hurd/vpprintf.c b/hurd/vpprintf.c
index 8ec064ae41..fe521774ea 100644
--- a/hurd/vpprintf.c
+++ b/hurd/vpprintf.c
@@ -22,10 +22,9 @@
 #include <hurd.h>
 
 static ssize_t
-pwrite (cookie, buf, n)
-     void *cookie;
-     const char *buf;
-     size_t n;
+pwrite (void *cookie,
+	const char *buf,
+	size_t n)
 {
   error_t error = __io_write ((io_t) cookie, buf, n, -1,
 			      (mach_msg_type_number_t *) &n);
@@ -38,10 +37,9 @@ pwrite (cookie, buf, n)
 /* Write formatted output to PORT, a Mach port supporting the i/o protocol,
    according to the format string FORMAT, using the argument list in ARG.  */
 int
-vpprintf (port, format, arg)
-     io_t port;
-     const char *format;
-     va_list arg;
+vpprintf (io_t port,
+	  const char *format,
+	  va_list arg)
 {
   int done;
   FILE f;