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
This commit is contained in:
Guido van Rooij 1994-08-23 20:13:32 +00:00
parent 6f1537dd90
commit 6c27ceb40e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2248
2 changed files with 3 additions and 3 deletions

View File

@ -4,5 +4,5 @@ PROG= uucpd
NOMAN= noman
LDADD= -lcrypt
DPADD= ${LIBCRYPT}
CFLAGS+= -DBSDINETD -DBSD42
.include <bsd.prog.mk>

View File

@ -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");
}