From a90a9adbd7f7ae53aa824c77d159f21ace1bc1f6 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 1 May 2007 00:06:21 +0000 Subject: Clarify behaviour of plug() by using intf_put() and intf_get(). --- src/core/interface.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/interface.c b/src/core/interface.c index 4c420fda7..f9345de6f 100644 --- a/src/core/interface.c +++ b/src/core/interface.c @@ -38,9 +38,8 @@ * interface into a null interface. */ void plug ( struct interface *intf, struct interface *dest ) { - ref_put ( intf->dest->refcnt ); - intf->dest = dest; - ref_get ( intf->dest->refcnt ); + intf_put ( intf->dest ); + intf->dest = intf_get ( dest ); } /** -- cgit v1.2.3-55-g7522