Marin Ramesa, le Mon 02 Dec 2013 22:54:45 +0100, a écrit : > * ipc/ipc_hash.c (ipc_hash_global_bucket): Move struct definition to > ipc/ipc_hash.h.
Ditto. > --- > ipc/ipc_hash.c | 7 ------- > ipc/ipc_hash.h | 7 +++++++ > 2 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/ipc/ipc_hash.c b/ipc/ipc_hash.c > index 5eec58c..5b31691 100644 > --- a/ipc/ipc_hash.c > +++ b/ipc/ipc_hash.c > @@ -144,13 +144,6 @@ ipc_hash_index_t ipc_hash_global_mask; > (((ipc_hash_index_t) ((vm_offset_t)obj)) >> 6)) & \ > ipc_hash_global_mask) > > -typedef struct ipc_hash_global_bucket { > - decl_simple_lock_data(, ihgb_lock_data) > - ipc_tree_entry_t ihgb_head; > -} *ipc_hash_global_bucket_t; > - > -#define IHGB_NULL ((ipc_hash_global_bucket_t) 0) > - > #define ihgb_lock_init(ihgb) > simple_lock_init(&(ihgb)->ihgb_lock_data) > #define ihgb_lock(ihgb) simple_lock(&(ihgb)->ihgb_lock_data) > #define ihgb_unlock(ihgb) simple_unlock(&(ihgb)->ihgb_lock_data) > diff --git a/ipc/ipc_hash.h b/ipc/ipc_hash.h > index 929ba77..1e853c3 100644 > --- a/ipc/ipc_hash.h > +++ b/ipc/ipc_hash.h > @@ -39,6 +39,13 @@ > > typedef natural_t ipc_hash_index_t; > > +typedef struct ipc_hash_global_bucket { > + decl_simple_lock_data(, ihgb_lock_data) > + ipc_tree_entry_t ihgb_head; > +} *ipc_hash_global_bucket_t; > + > +#define IHGB_NULL ((ipc_hash_global_bucket_t) 0) > + > extern void > ipc_hash_init(void); > > -- > 1.8.1.4 > > -- Samuel Yep. Moi j'ai un clavier à une touche. Par contre, ma souris a 102 boutons, c'est pas toujours pratique. -+- OG in: Guide du Cabaliste Usenet - Le mulot contre attaque -+-