From 124456a1b125ad8890eb2a3e00279d79e77a6f90 Mon Sep 17 00:00:00 2001 From: guido Date: Tue, 23 Aug 1994 20:13:32 +0000 Subject: Add -DBSD4.2 and -DBSDINETD so uucpd makes sense. Further correct a warning at compil time. This actually makes uucpd at tcp port 540 work, so slippers can poll over tcp. Reviewed by: Submitted by: guido --- libexec/uucpd/Makefile | 2 +- libexec/uucpd/uucpd.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libexec/uucpd') diff --git a/libexec/uucpd/Makefile b/libexec/uucpd/Makefile index 98feec2..d8aa8fb 100644 --- a/libexec/uucpd/Makefile +++ b/libexec/uucpd/Makefile @@ -4,5 +4,5 @@ PROG= uucpd NOMAN= noman LDADD= -lcrypt DPADD= ${LIBCRYPT} - +CFLAGS+= -DBSDINETD -DBSD42 .include diff --git a/libexec/uucpd/uucpd.c b/libexec/uucpd/uucpd.c index 5b958ce..ce45df4 100644 --- a/libexec/uucpd/uucpd.c +++ b/libexec/uucpd/uucpd.c @@ -95,7 +95,7 @@ char **argv; close(1); close(2); dup(0); dup(0); hisaddrlen = sizeof (hisctladdr); - if (getpeername(0, &hisctladdr, &hisaddrlen) < 0) { + if (getpeername(0, (struct sockaddr *)&hisctladdr, &hisaddrlen) < 0) { fprintf(stderr, "%s: ", argv[0]); perror("getpeername"); _exit(1); @@ -201,7 +201,7 @@ struct sockaddr_in *sinp; chdir(pw->pw_dir); setuid(pw->pw_uid); #ifdef BSD4_2 - execl(UUCICO, "uucico", (char *)0); + execl(_PATH_UUCICO, "uucico", (char *)0); #endif BSD4_2 perror("uucico server: execl"); } -- cgit v1.1