summaryrefslogtreecommitdiff
path: root/trans/magic.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-07-20 06:52:25 +0000
committerRoland McGrath <roland@gnu.org>1998-07-20 06:52:25 +0000
commit15b92b3a0a0c5b124e1ec7b2c107f625acdc9a67 (patch)
tree2904869646bc3d4f337a91838e880de0d208350a /trans/magic.c
parenta39b14357bcf19663de3994d7a4068ecea8a6a64 (diff)
1998-07-20 Roland McGrath <roland@baalperazim.frob.com>
* firmlink.c (main): Fix return type to int, and use return. * fwd.c (main): Likewise. * new-fifo.c (main): Likewise. * magic.c (main): Likewise. * fifo.c (main): Likewise. * null.c (main): Likewise.
Diffstat (limited to 'trans/magic.c')
-rw-r--r--trans/magic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/trans/magic.c b/trans/magic.c
index a8f764a0..733ce2d7 100644
--- a/trans/magic.c
+++ b/trans/magic.c
@@ -1,6 +1,6 @@
/* A translator for returning FS_RETRY_MAGIC strings.
- Copyright (C) 1995, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
This program is free software; you can redistribute it and/or
@@ -34,7 +34,7 @@ extern int fsys_server (mach_msg_header_t *, mach_msg_header_t *);
/* The magic string we return for lookups. */
static char *magic = NULL;
-void
+int
main (int argc, char **argv)
{
error_t err;
@@ -63,7 +63,7 @@ main (int argc, char **argv)
err = mach_msg_server_timeout (fsys_server, 0, control,
MACH_RCV_TIMEOUT, 1000 * 60 * 10);
if (err == MACH_RCV_TIMED_OUT)
- exit (0);
+ return 0;
}
}