Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe Assign a value to recon_buffer_size in a d...



details:   https://anonhg.NetBSD.org/src/rev/b659ba82265b
branches:  trunk
changeset: 536488:b659ba82265b
user:      oster <oster%NetBSD.org@localhost>
date:      Mon Sep 16 23:37:18 2002 +0000

description:
Assign a value to recon_buffer_size in a different way so that the
compiler doesn't complain when we change what RF_Free looks like.

diffstat:

 sys/dev/raidframe/rf_reconutil.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r acc6ce8ede76 -r b659ba82265b sys/dev/raidframe/rf_reconutil.c
--- a/sys/dev/raidframe/rf_reconutil.c  Mon Sep 16 23:04:39 2002 +0000
+++ b/sys/dev/raidframe/rf_reconutil.c  Mon Sep 16 23:37:18 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_reconutil.c,v 1.8 2002/09/16 02:39:42 oster Exp $   */
+/*     $NetBSD: rf_reconutil.c,v 1.9 2002/09/16 23:37:18 oster Exp $   */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -31,7 +31,7 @@
  ********************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_reconutil.c,v 1.8 2002/09/16 02:39:42 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_reconutil.c,v 1.9 2002/09/16 23:37:18 oster Exp $");
 
 #include <dev/raidframe/raidframevar.h>
 
@@ -257,7 +257,9 @@
        RF_ReconBuffer_t *rbuf;
 {
        RF_Raid_t *raidPtr = rbuf->raidPtr;
-       u_int   recon_buffer_size = rf_RaidAddressToByte(raidPtr, raidPtr->Layout.SUsPerRU * raidPtr->Layout.sectorsPerStripeUnit);
+       u_int   recon_buffer_size;
+
+       recon_buffer_size = rf_RaidAddressToByte(raidPtr, raidPtr->Layout.SUsPerRU * raidPtr->Layout.sectorsPerStripeUnit);
 
        RF_Free(rbuf->buffer, recon_buffer_size);
        RF_Free(rbuf, sizeof(*rbuf));



Home | Main Index | Thread Index | Old Index