From 34fb146d27029fd9b20063398a50e809f61102b9 Mon Sep 17 00:00:00 2001 From: oster Date: Sat, 21 Sep 2002 00:52:49 +0000 Subject: [PATCH] Shuffle #ifdefs to include stuff only if we're doing parity logging stuff. Thanks Krister! --- sys/dev/raidframe/rf_dagfuncs.c | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/sys/dev/raidframe/rf_dagfuncs.c b/sys/dev/raidframe/rf_dagfuncs.c index 01e876fd59d4..aa3f1a21d88b 100644 --- a/sys/dev/raidframe/rf_dagfuncs.c +++ b/sys/dev/raidframe/rf_dagfuncs.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_dagfuncs.c,v 1.9 2002/09/11 03:01:23 oster Exp $ */ +/* $NetBSD: rf_dagfuncs.c,v 1.10 2002/09/21 00:52:49 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -48,7 +48,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rf_dagfuncs.c,v 1.9 2002/09/11 03:01:23 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_dagfuncs.c,v 1.10 2002/09/21 00:52:49 oster Exp $"); #include #include @@ -228,21 +228,6 @@ rf_ParityLogOverwriteFunc(node) } return (0); } -#else /* RF_INCLUDE_PARITYLOGGING > 0 */ - -int -rf_ParityLogUpdateFunc(node) - RF_DagNode_t *node; -{ - return (0); -} -int -rf_ParityLogOverwriteFunc(node) - RF_DagNode_t *node; -{ - return (0); -} -#endif /* RF_INCLUDE_PARITYLOGGING > 0 */ int rf_ParityLogUpdateUndoFunc(node) @@ -257,6 +242,8 @@ rf_ParityLogOverwriteUndoFunc(node) { return (0); } +#endif /* RF_INCLUDE_PARITYLOGGING > 0 */ + /***************************************************************************************** * the execution function associated with a NOP node ****************************************************************************************/