diff options
| author | Guido van Rooij <guido@FreeBSD.org> | 1994-08-23 20:13:32 +0000 |
|---|---|---|
| committer | Guido van Rooij <guido@FreeBSD.org> | 1994-08-23 20:13:32 +0000 |
| commit | 6c27ceb40e1f142c10e8d33d5caec023ff420120 (patch) | |
| tree | 7e6429e8a16afed6ac6f74981f0feeb8cc0c2a40 /libexec | |
| parent | 6f1537dd90f61675e9fd05efb6a9bfc20cfe4b77 (diff) | |
Notes
Diffstat (limited to 'libexec')
| -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 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 <bsd.prog.mk> 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"); } |
