diff --git a/libexec/uucpd/Makefile b/libexec/uucpd/Makefile index 98feec21c20f..d8aa8fbdc60a 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 5b958ce53a53..ce45df41d1be 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"); }