fix example: ONCE_DECL(), not DECL_ONCE()

This commit is contained in:
pooka 2008-10-03 16:19:46 +00:00
parent 97561001a3
commit 8c1c8c2229

View File

@ -1,4 +1,4 @@
.\" $NetBSD: RUN_ONCE.9,v 1.6 2007/07/14 10:52:47 ad Exp $
.\" $NetBSD: RUN_ONCE.9,v 1.7 2008/10/03 16:19:46 pooka Exp $
.\"
.\" Copyright (c)2005 YAMAMOTO Takashi,
.\" All rights reserved.
@ -25,7 +25,7 @@
.\" SUCH DAMAGE.
.\"
.\" ------------------------------------------------------------
.Dd January 17, 2006
.Dd October 3, 2008
.Dt RUN_ONCE 9
.Os
.\" ------------------------------------------------------------
@ -92,7 +92,7 @@ init_func(void)
int
some_func(void)
{
static DECL_ONCE(control);
static ONCE_DECL(control);
RUN_ONCE(\*[Am]control, init_func);