summaryrefslogtreecommitdiffstats
path: root/libexec/uucpd/uucpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/uucpd/uucpd.c')
-rw-r--r--libexec/uucpd/uucpd.c4
1 files changed, 2 insertions, 2 deletions
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");
}
OpenPOWER on IntegriCloud