Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nathanw_sa]: src/sys/net lwp'ify



details:   https://anonhg.NetBSD.org/src/rev/7db862e94d05
branches:  nathanw_sa
changeset: 505578:7db862e94d05
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Fri Feb 01 05:15:52 2002 +0000

description:
lwp'ify

diffstat:

 sys/net/if_spppsubr.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r c65f4ef49962 -r 7db862e94d05 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Fri Feb 01 04:57:44 2002 +0000
+++ b/sys/net/if_spppsubr.c     Fri Feb 01 05:15:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppsubr.c,v 1.20.2.7 2002/01/11 23:39:44 nathanw Exp $      */
+/*     $NetBSD: if_spppsubr.c,v 1.20.2.8 2002/02/01 05:15:52 gmcgarry Exp $     */
 
 /*
  * Synchronous PPP/Cisco link level subroutines.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.20.2.7 2002/01/11 23:39:44 nathanw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.20.2.8 2002/02/01 05:15:52 gmcgarry Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipx.h"
@@ -36,6 +36,7 @@
 #include "opt_ns.h"
 
 #include <sys/param.h>
+#include <sys/lwp.h>
 #include <sys/proc.h>
 #include <sys/systm.h>
 #include <sys/kernel.h>
@@ -1139,7 +1140,7 @@
        case SPPPSETIDLETO:
        case SPPPSETAUTHFAILURE:
        {
-               struct proc *p = curproc;               /* XXX */
+               struct proc *p = curproc->l_proc;               /* XXX */
 
                if ((rv = suser(p->p_ucred, &p->p_acflag)) != 0)
                        break;



Home | Main Index | Thread Index | Old Index