diff options
author | gibbs <gibbs@FreeBSD.org> | 1995-09-14 04:06:18 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1995-09-14 04:06:18 +0000 |
commit | f0975436e0b4427252d694a28b370887f615f33c (patch) | |
tree | cc03b48c1d4c0bfdd3af1218f9ea93ae1987cb5a /eBones/libexec/registerd | |
parent | 52c50c3fbdcb754e110c6f1265fa23b99f12c3f2 (diff) | |
download | FreeBSD-src-f0975436e0b4427252d694a28b370887f615f33c.zip FreeBSD-src-f0975436e0b4427252d694a28b370887f615f33c.tar.gz |
Bmake fixes for the eBones tree.
Diffstat (limited to 'eBones/libexec/registerd')
-rw-r--r-- | eBones/libexec/registerd/Makefile | 6 | ||||
-rw-r--r-- | eBones/libexec/registerd/registerd.c | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/eBones/libexec/registerd/Makefile b/eBones/libexec/registerd/Makefile index 9966241..af9e2ca 100644 --- a/eBones/libexec/registerd/Makefile +++ b/eBones/libexec/registerd/Makefile @@ -6,15 +6,13 @@ # # @(#)Makefile 8.1 (Berkeley) 6/1/93 # -# $Id$ +# $Id: Makefile,v 1.4 1995/09/13 17:24:03 markm Exp $ PROG= registerd SRCS= registerd.c -CFLAGS+=-DCRYPT -DKERBEROS -I${.CURDIR}/../../usr.bin/register \ - -I${.CURDIR}/../../include -Wall +CFLAGS+=-DCRYPT -DKERBEROS -I${.CURDIR}/../../usr.bin/register DPADD+= ${LIBKDB} ${LIBKRB} ${LIBDES} LDADD= -lkdb -lkrb -ldes MAN8= registerd.8 -BINDIR= /usr/libexec .include <bsd.prog.mk> diff --git a/eBones/libexec/registerd/registerd.c b/eBones/libexec/registerd/registerd.c index 12a3939..36c7a74 100644 --- a/eBones/libexec/registerd/registerd.c +++ b/eBones/libexec/registerd/registerd.c @@ -66,7 +66,7 @@ static char sccsid[] = "@(#)registerd.c 8.1 (Berkeley) 6/1/93"; char *progname, msgbuf[BUFSIZ]; void cleanup(void); -void die(void); +void die(int); void send_packet(char *msg, int flag); int net_get_principal(char *pname, char *iname, C_Block *keyp); int do_append(struct sockaddr_in *sinp); @@ -91,7 +91,7 @@ main(argc, argv) signal(SIGHUP, SIG_IGN); signal(SIGINT, SIG_IGN); signal(SIGTSTP, SIG_IGN); - signal(SIGPIPE, (__sighandler_t *)die); + signal(SIGPIPE, die); if (setrlimit(RLIMIT_CORE, &rl) < 0) { syslog(LOG_ERR, "setrlimit: %m"); @@ -346,7 +346,8 @@ cleanup() } void -die() +die(sig) + int sig; { syslog(LOG_ERR, "remote end died (SIGPIPE)"); cleanup(); |