LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File l2tpd-log-unix98.patch of Package l2tpd (Project home:danci1973)

diff -r -u l2tpd-0.69/pty.c l2tpd-0.69-logfix/pty.c
--- l2tpd-0.69/pty.c	2005-06-20 14:45:34.000000000 -0400
+++ l2tpd-0.69-logfix/pty.c	2005-06-20 14:33:36.000000000 -0400
@@ -55,10 +55,10 @@
             snprintf(pty_name, len, "/dev/pts/%d", ptn);
             ptn = 0;
             if (ioctl(mfd, TIOCSPTLCK, &ptn) < 0) {
-                /* log(LOG_WARN,"Couldn't unlock pty slave %s: %m", pty_name); */
+                /* l2tplog(LOG_WARN,"Couldn't unlock pty slave %s: %m", pty_name); */
             }
             if ((sfd = open(pty_name, O_RDWR | O_NOCTTY)) < 0) {
-                /* log(LOG_WARN,"Couldn't open pty slave %s: %m", pty_name); */
+                /* l2tplog(LOG_WARN,"Couldn't open pty slave %s: %m", pty_name); */
             }
         }
     }
@@ -80,14 +80,14 @@
         tcsetattr(sfd, TCSAFLUSH, &tios);
     }
     if (ioctl(sfd, TIOCSETD, &disc) < 0) {
-        log(LOG_DEBUG,"Unable to set line discipline to N_HDLC");
+        l2tplog(LOG_DEBUG,"Unable to set line discipline to N_HDLC");
         close(mfd);
         close(sfd);
         return -1;
     }
     disc = N_HDLC;
     if (ioctl(mfd, TIOCSETD, &disc) < 0) {
-        log(LOG_DEBUG,"Unable to set line discipline to N_HDLC");
+        l2tplog(LOG_DEBUG,"Unable to set line discipline to N_HDLC");
         close(mfd);
         close(sfd);
         return -1;