summaryrefslogtreecommitdiff
path: root/zhm/zhm.c
diff options
context:
space:
mode:
authorGravatar John F. Carr <jfc@mit.edu>1991-06-18 11:20:42 +0000
committerGravatar John F. Carr <jfc@mit.edu>1991-06-18 11:20:42 +0000
commit0fdad3476f715ca62ba7ed999dc255ee1967943c (patch)
tree7ca0690147949f85fdd8d7169430359705391eaa /zhm/zhm.c
parent8e774e1da62b82c9312ae356ead099665f8db98e (diff)
POSIX support.
Diffstat (limited to 'zhm/zhm.c')
-rw-r--r--zhm/zhm.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/zhm/zhm.c b/zhm/zhm.c
index 4687292..2f4b2f3 100644
--- a/zhm/zhm.c
+++ b/zhm/zhm.c
@@ -13,13 +13,14 @@
#include "zhm.h"
-static char rcsid_hm_c[] =
- "$Zephyr: zhm.c,v 1.47 90/12/21 17:50:03 raeburn Exp $";
+static char rcsid_hm_c[] = "$Id$";
#include <ctype.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/file.h>
+#include <string.h>
+#include <errno.h>
/*
* warning: sys/param.h may include sys/types.h which may not be protected from
* multiple inclusions on your system
@@ -49,12 +50,20 @@ char **clust_info;
char hostname[MAXHOSTNAMELEN], loopback[4];
char *PidFile = PIDFILE;
-extern int errno;
-extern char *index(), *strcpy(), *sbrk();
+extern char *index(), *sbrk();
extern long time();
void init_hm(), detach(), handle_timeout(), resend_notices(), die_gracefully();
-int set_sig_type();
+
+#if defined(ultrix) || defined(_POSIX_SOURCE)
+void
+#endif
+ set_sig_type(sig)
+ int sig;
+{
+ sig_type = sig;
+}
+
char *strsave();
main(argc, argv)
@@ -409,13 +418,6 @@ void detach()
}
}
-int set_sig_type(sig)
- int sig;
-{
- sig_type = sig;
- return(0);
-}
-
static char version[BUFSIZ];
send_stats(notice, sin)