X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-ultrix.c;h=95bb7dd4721dc021ef2d9c72a23e5a5e42cad254;hp=92cde071d2a7907d72357e5a4b7515a8e063d63f;hb=98516bb41580f3d34d750165e9a65289bc5ad248;hpb=249bc0ca32eed685e3bf4bcce5cb888f25b4f650 diff --git a/pppd/sys-ultrix.c b/pppd/sys-ultrix.c index 92cde07..95bb7dd 100644 --- a/pppd/sys-ultrix.c +++ b/pppd/sys-ultrix.c @@ -21,7 +21,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-ultrix.c,v 1.18 1996/07/01 01:20:29 paulus Exp $"; +static char rcsid[] = "$Id: sys-ultrix.c,v 1.20 1997/03/04 03:43:54 paulus Exp $"; #endif /* @@ -116,7 +116,7 @@ sys_cleanup() if (ifaddrs[0]) cifaddr(0, ifaddrs[0], ifaddrs[1]); if (default_route_gateway) - cifdefaultroute(0, default_route_gateway); + cifdefaultroute(0, 0, default_route_gateway); if (proxy_arp_addr) cifproxyarp(0, proxy_arp_addr); } @@ -141,8 +141,7 @@ void sys_check_options() { if (demand) { - fprintf(stderr, - "Sorry - demand-dialling is not supported under Ultrix\n"); + option_error("Sorry - demand-dialling is not supported under Ultrix\n"); exit(1); } } @@ -980,7 +979,9 @@ cifaddr(u, o, h) * sifdefaultroute - assign a default route through the address given. */ int -sifdefaultroute(u, g) +sifdefaultroute(u, l, g) + int unit; + u_int32_t l, g; { struct rtentry rt; @@ -1001,7 +1002,9 @@ sifdefaultroute(u, g) * cifdefaultroute - delete a default route through the address given. */ int -cifdefaultroute(u, g) +cifdefaultroute(u, l, g) + int unit; + u_int32_t l, g; { struct rtentry rt; @@ -1250,9 +1253,9 @@ char *strdup( in ) char *in; #define WTMPFILE "/usr/adm/wtmp" -int +void logwtmp(line, name, host) - char *line, *name, *host; + const char *line, *name, *host; { int fd; struct stat buf;