summaryrefslogtreecommitdiff
path: root/trans/symlink.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-02-26 04:16:01 +0000
committerRoland McGrath <roland@gnu.org>2001-02-26 04:16:01 +0000
commit43dc903ebfb710ea2e7844859d9c722b81e71799 (patch)
treeaad36af3ade5b690f0fc720f833620025cc57a11 /trans/symlink.c
parented7c279a06c09c49c5b9d41af284a162f94838cb (diff)
2001-02-25 Roland McGrath <roland@frob.com>
* symlink.c: Include <string.h> for decls of built-ins. * firmlink.c: Include <stdlib.h> for exit decl. * ifsock.c: Likewise. * null.c: Likewise. * magic.c: Likewise. * fifo.c: Likewise. * hello.c: Likewise. * hello-mt.c: Likewise.
Diffstat (limited to 'trans/symlink.c')
-rw-r--r--trans/symlink.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/trans/symlink.c b/trans/symlink.c
index 6235d272..bacf6f03 100644
--- a/trans/symlink.c
+++ b/trans/symlink.c
@@ -1,5 +1,5 @@
/* Translator for S_IFLNK nodes
- Copyright (C) 1994, 2000 Free Software Foundation
+ Copyright (C) 1994, 2000, 2001 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -17,6 +17,8 @@
#include <hurd.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <hurd/fsys.h>
#include <fcntl.h>
#include "fsys_S.h"
@@ -37,14 +39,14 @@ main (int argc, char **argv)
mach_port_t bootstrap;
mach_port_t control;
error_t error;
-
+
task_get_bootstrap_port (mach_task_self (), &bootstrap);
if (bootstrap == MACH_PORT_NULL)
{
fprintf (stderr, "%s must be started as a translator\n", argv[0]);
exit (1);
}
-
+
if (argc != 2)
{
fprintf (stderr, "Usage: %s link-target\n", argv[0]);
@@ -130,8 +132,7 @@ S_fsys_startup (mach_port_t bootstrap, int flags, mach_port_t control,
}
error_t
-S_fsys_goaway (mach_port_t control,
- int flags)
+S_fsys_goaway (mach_port_t control, int flags)
{
exit (0);
}