summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ipcp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-06-08 20:12:06 +0000
committerbrian <brian@FreeBSD.org>1999-06-08 20:12:06 +0000
commitb5ed987df095feb40573ae128ef77174046ba3be (patch)
treeb8d8afe8320e5ad0af8f9876993024e727a90c44 /usr.sbin/ppp/ipcp.c
parent9ba53ba0dd584dd97151aab88c60e87cc4776f61 (diff)
downloadFreeBSD-src-b5ed987df095feb40573ae128ef77174046ba3be.zip
FreeBSD-src-b5ed987df095feb40573ae128ef77174046ba3be.tar.gz
Don't use static variables if we don't have to.
Diffstat (limited to 'usr.sbin/ppp/ipcp.c')
-rw-r--r--usr.sbin/ppp/ipcp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c
index 768ef9b..f1b0ddd 100644
--- a/usr.sbin/ppp/ipcp.c
+++ b/usr.sbin/ppp/ipcp.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: ipcp.c,v 1.79 1999/06/02 15:59:01 brian Exp $
+ * $Id: ipcp.c,v 1.80 1999/06/08 11:58:27 brian Exp $
*
* TODO:
* o Support IPADDRS properly
@@ -504,8 +504,7 @@ static int
ipcp_SetIPaddress(struct bundle *bundle, struct in_addr myaddr,
struct in_addr hisaddr, int silent)
{
- static struct in_addr none = { INADDR_ANY };
- struct in_addr mask, oaddr;
+ struct in_addr mask, oaddr, none = { INADDR_ANY };
mask = addr2mask(myaddr);
OpenPOWER on IntegriCloud