From b5b07cad7d223ffa61db5aefa47db5f4f3ee8265 Mon Sep 17 00:00:00 2001 From: Thomas Doerfler Date: Thu, 29 Oct 2009 12:50:01 +0000 Subject: - - Reorderd AVL node fields to save space - Fixed printf() formats. New structure for waiters synchronization. Added BDBUF_INVALID_DEV define. New error handling in rtems_bdbuf_init(). - Release disk in case of an error. --- cpukit/libblock/include/rtems/bdbuf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libblock/include/rtems/bdbuf.h') diff --git a/cpukit/libblock/include/rtems/bdbuf.h b/cpukit/libblock/include/rtems/bdbuf.h index 31073dcbbe..4b66fd781e 100644 --- a/cpukit/libblock/include/rtems/bdbuf.h +++ b/cpukit/libblock/include/rtems/bdbuf.h @@ -31,7 +31,7 @@ #ifdef __cplusplus extern "C" { #endif - + /** * @defgroup rtems_libblock Block Device Library * @@ -183,9 +183,9 @@ typedef struct rtems_bdbuf_buffer struct rtems_bdbuf_avl_node { - signed char cache; /**< Cache */ struct rtems_bdbuf_buffer* left; /**< Left Child */ struct rtems_bdbuf_buffer* right; /**< Right Child */ + signed char cache; /**< Cache */ signed char bal; /**< The balance of the sub-tree */ } avl; -- cgit v1.2.3