diff options
author | guido <guido@FreeBSD.org> | 1994-08-23 20:13:32 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 1994-08-23 20:13:32 +0000 |
commit | 124456a1b125ad8890eb2a3e00279d79e77a6f90 (patch) | |
tree | 7e6429e8a16afed6ac6f74981f0feeb8cc0c2a40 /libexec/uucpd | |
parent | 8312f29778c8354f24b951eb974b2699bd69f2ba (diff) | |
download | FreeBSD-src-124456a1b125ad8890eb2a3e00279d79e77a6f90.zip FreeBSD-src-124456a1b125ad8890eb2a3e00279d79e77a6f90.tar.gz |
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
Diffstat (limited to 'libexec/uucpd')
-rw-r--r-- | libexec/uucpd/Makefile | 2 | ||||
-rw-r--r-- | libexec/uucpd/uucpd.c | 4 |
2 files changed, 3 insertions, 3 deletions
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 <bsd.prog.mk> 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"); } |