From f79f9fde7cbcfded3a72e2981d98a2a7d0a8c2a3 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 25 Jun 2009 10:14:49 +0000 Subject: Change safe_rng_read() from __inline to static __inline like the original FreeBSD code for consistent behaviour between c89/c99 compilers. --- sys/dev/pci/safe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/dev/pci/safe.c b/sys/dev/pci/safe.c index 3a5bfd46ac1..afcaca04708 100644 --- a/sys/dev/pci/safe.c +++ b/sys/dev/pci/safe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: safe.c,v 1.24 2008/10/15 19:12:18 blambert Exp $ */ +/* $OpenBSD: safe.c,v 1.25 2009/06/25 10:14:48 jsg Exp $ */ /*- * Copyright (c) 2003 Sam Leffler, Errno Consulting @@ -109,7 +109,7 @@ void safe_reset_board(struct safe_softc *); void safe_init_board(struct safe_softc *); void safe_init_pciregs(struct safe_softc *); void safe_cleanchip(struct safe_softc *); -__inline u_int32_t safe_rng_read(struct safe_softc *); +static __inline u_int32_t safe_rng_read(struct safe_softc *); int safe_free_entry(struct safe_softc *, struct safe_ringentry *); @@ -1187,7 +1187,7 @@ safe_rng_init(struct safe_softc *sc) } while (++i < SAFE_RNG_MAXWAIT); } -__inline u_int32_t +static __inline u_int32_t safe_rng_read(struct safe_softc *sc) { int i; -- cgit v1.2.3