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