Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netatalk/at_control.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netatalk/at_control.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.34 retrieving revision 1.35 diff -u -p -r1.34 -r1.35 --- src/sys/netatalk/at_control.c 2011/10/19 01:50:27 1.34 +++ src/sys/netatalk/at_control.c 2014/07/01 05:49:18 1.35 @@ -1,4 +1,4 @@ -/* $NetBSD: at_control.c,v 1.34 2011/10/19 01:50:27 dyoung Exp $ */ +/* $NetBSD: at_control.c,v 1.35 2014/07/01 05:49:18 rtr Exp $ */ /* * Copyright (c) 1990,1994 Regents of The University of Michigan. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: at_control.c,v 1.34 2011/10/19 01:50:27 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: at_control.c,v 1.35 2014/07/01 05:49:18 rtr Exp $"); #include #include @@ -72,7 +72,7 @@ static void aa_clean(void); (a)->sat_addr.s_node == (b)->sat_addr.s_node ) int -at_control(u_long cmd, void * data, struct ifnet *ifp, struct lwp *l) +at_control(u_long cmd, void *data, struct ifnet *ifp) { struct ifreq *ifr = (struct ifreq *) data; const struct sockaddr_at *csat; @@ -125,7 +125,7 @@ at_control(u_long cmd, void * data, stru * If we are not superuser, then we don't get to do these * ops. */ - if (l && kauth_authorize_network(l->l_cred, + if (kauth_authorize_network(curlwp->l_cred, KAUTH_NETWORK_INTERFACE, KAUTH_REQ_NETWORK_INTERFACE_SETPRIV, ifp, (void *)cmd, NULL) != 0)