summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-11-01 03:35:43 +0000
committerderaadt <deraadt@openbsd.org>2007-11-01 03:35:43 +0000
commitc4e23f0b32d7611454b542445cbee2f76bfc2a27 (patch)
tree51836d45a64cf91605a91187f1f0c098709c9049
parenttsk tsk tsk, noone tested this; spotted by canacar (diff)
downloadwireguard-openbsd-c4e23f0b32d7611454b542445cbee2f76bfc2a27.tar.xz
wireguard-openbsd-c4e23f0b32d7611454b542445cbee2f76bfc2a27.zip
correct fix
-rw-r--r--sys/net/if_spppsubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 3428790e553..10dcd7215f9 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_spppsubr.c,v 1.60 2007/11/01 02:47:20 deraadt Exp $ */
+/* $OpenBSD: if_spppsubr.c,v 1.61 2007/11/01 03:35:43 deraadt Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
* Keepalive protocol implemented in both Cisco and PPP modes.
@@ -43,6 +43,7 @@
#include <sys/kernel.h>
#include <sys/sockio.h>
#include <sys/socket.h>
+#include <sys/proc.h>
#include <sys/syslog.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
@@ -4858,7 +4859,6 @@ HIDE int
sppp_params(struct sppp *sp, u_long cmd, void *data)
{
struct ifreq *ifr = (struct ifreq *)data;
- extern struct proc *curproc;
struct spppreq spr;
if (copyin((caddr_t)ifr->ifr_data, &spr, sizeof spr) != 0)