aboutsummaryrefslogtreecommitdiff
path: root/eBones/usr.bin/register
diff options
context:
space:
mode:
authorJustin T. Gibbs <gibbs@FreeBSD.org>1995-09-14 04:08:58 +0000
committerJustin T. Gibbs <gibbs@FreeBSD.org>1995-09-14 04:08:58 +0000
commit8fbd000c5d85c4e2315da220d7b32436d12a8519 (patch)
tree14146162719aa7dde3cbe1c983d601f523608d38 /eBones/usr.bin/register
parenta7c207ecf4d4f42014cca8c8b6052039e984d2f0 (diff)
downloadsrc-8fbd000c5d85c4e2315da220d7b32436d12a8519.tar.gz
src-8fbd000c5d85c4e2315da220d7b32436d12a8519.zip
Don't cast die with (__sighandler_t *) when its passed to signal(). Instead
have die take an int arg that it never uses.
Notes
Notes: svn path=/head/; revision=10721
Diffstat (limited to 'eBones/usr.bin/register')
-rw-r--r--eBones/usr.bin/register/Makefile5
-rw-r--r--eBones/usr.bin/register/register.c7
2 files changed, 6 insertions, 6 deletions
diff --git a/eBones/usr.bin/register/Makefile b/eBones/usr.bin/register/Makefile
index 140b5644aa3e..82a411cfc31a 100644
--- a/eBones/usr.bin/register/Makefile
+++ b/eBones/usr.bin/register/Makefile
@@ -1,11 +1,10 @@
# @(#)Makefile 8.1 (Berkeley) 6/1/93
-# $Id: Makefile,v 1.6 1995/09/07 20:54:18 mark Exp $
+# $Id: Makefile,v 1.4 1995/09/13 17:24:14 markm Exp $
PROG= register
-CFLAGS+=-DCRYPT -DDEBUG -DKERBEROS -I${.CURDIR}/../../include -Wall
+CFLAGS+=-DCRYPT -DDEBUG -DKERBEROS
DPADD= ${LIBKRB} ${LIBDES} ${LIBCRYPT}
LDADD= -lkrb -ldes -lcrypt
-BINDIR= /usr/bin
BINOWN= root
BINMODE=4555
diff --git a/eBones/usr.bin/register/register.c b/eBones/usr.bin/register/register.c
index 4f083a7a730f..7050cca1284b 100644
--- a/eBones/usr.bin/register/register.c
+++ b/eBones/usr.bin/register/register.c
@@ -62,7 +62,7 @@ static char sccsid[] = "@(#)register.c 8.1 (Berkeley) 6/1/93";
#define SERVICE "krbupdate" /* service to add to KDC's database */
#define PROTOCOL "tcp"
-void die(void);
+void die(int);
void type_info(void);
void setup_key(struct sockaddr_in local);
void cleanup(void);
@@ -88,7 +88,7 @@ main(argc, argv)
u_char code;
static struct rlimit rl = { 0, 0 };
- signal(SIGPIPE, (__sighandler_t *)die);
+ signal(SIGPIPE, die);
if (setrlimit(RLIMIT_CORE, &rl) < 0) {
perror("rlimit");
@@ -306,7 +306,8 @@ type_info()
}
void
-die()
+die(sig)
+ int sig;
{
fprintf(stderr, "\nServer no longer listening\n");
fflush(stderr);