From 4bfd5b52c1fae75eb0449af626ec69543f9334fa Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 15 Jun 2010 17:33:23 +0100 Subject: [refcnt] Add ref_init() wrapper function Standardise on using ref_init() to initialise an embedded reference count, to match the coding style used by other embedded objects. Signed-off-by: Michael Brown --- src/net/udp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/net/udp.c') diff --git a/src/net/udp.c b/src/net/udp.c index 1aa0e4968..dcc69c36c 100644 --- a/src/net/udp.c +++ b/src/net/udp.c @@ -110,6 +110,7 @@ static int udp_open_common ( struct xfer_interface *xfer, if ( ! udp ) return -ENOMEM; DBGC ( udp, "UDP %p allocated\n", udp ); + ref_init ( &udp->refcnt, NULL ); xfer_init ( &udp->xfer, &udp_xfer_operations, &udp->refcnt ); if ( st_peer ) memcpy ( &udp->peer, st_peer, sizeof ( udp->peer ) ); -- cgit v1.2.3-55-g7522