X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-linux.c;h=caaf3a9adb7bd291c9eea814d7512a4bcc42019b;hb=e38fa6a29a90a514ad7dfa8fa873d5fd49bc9ca1;hp=252262e0196d7abe8a09566c97e3ca235d39d3c6;hpb=0c24fe1477a2b775bdce9eaa9203b475821f7454;p=ppp.git diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index 252262e..caaf3a9 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -945,8 +945,7 @@ void output (int unit, unsigned char *p, int len) int fd = ppp_fd; int proto; - if (debug) - dbglog("sent %P", p, len); + dump_packet("sent", p, len); if (len < PPP_HDRLEN) return; @@ -2074,9 +2073,6 @@ void logwtmp (const char *line, const char *name, const char *host) while ((utp = getutent()) && (utp->ut_pid != mypid)) /* nothing */; - /* Is this call really necessary? There is another one after the 'put' */ - endutent(); - if (utp) memcpy(&ut, utp, sizeof(ut)); else