X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmain.c;h=ad7c90d0910bd0b5831c01cf0ae87fa64106c3c0;hb=5b7a245572fb88a6c0aa2e753c74040105571ceb;hp=ca6e50a7be34c69228cbe115c7ef76d10a024ead;hpb=3f2fe49d822135c209e9896f666b748cf2234f2e;p=ppp.git diff --git a/pppd/main.c b/pppd/main.c index ca6e50a..ad7c90d 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -17,7 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: main.c,v 1.93 2000/04/13 12:05:59 paulus Exp $" +#define RCSID "$Id: main.c,v 1.94 2000/04/15 01:27:13 masputra Exp $" #include #include @@ -83,7 +83,7 @@ static uid_t uid; /* Our real user-id */ static int conn_running; /* we have a [dis]connector running */ int ttyfd; /* Serial port file descriptor */ -mode_t tty_mode = -1; /* Original access permissions to tty */ +mode_t tty_mode = (mode_t)-1; /* Original access permissions to tty */ int baud_rate; /* Actual bits/second for serial device */ int hungup; /* terminal has been hung up */ int privileged; /* we're running as real uid root */ @@ -2143,7 +2143,7 @@ open_socket(dest) sad.sin_family = AF_INET; sad.sin_port = htons(port); sad.sin_addr.s_addr = host; - if (connect(sock, &sad, sizeof(sad)) < 0) { + if (connect(sock, (struct sockaddr *)&sad, sizeof(sad)) < 0) { error("Can't connect to %s: %m", dest); close(sock); return -1;