summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_ptr_indirection.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-05-05 18:19:14 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-05-05 18:19:14 +0200
commit4e88ad4dd6631ba40f4511900690e87dde43bc57 (patch)
tree0caf8b33e8b7486eb9954c540b0feb8172491b7c /src/lib/eo/eo_ptr_indirection.c
parent95b0f469b6aafdfb2e8f7b31452993a5ad58e5f1 (diff)
eo ptr in: follow naming convention for static fcts
Diffstat (limited to 'src/lib/eo/eo_ptr_indirection.c')
-rw-r--r--src/lib/eo/eo_ptr_indirection.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/eo/eo_ptr_indirection.c b/src/lib/eo/eo_ptr_indirection.c
index 9ee90b5..74a3926 100644
--- a/src/lib/eo/eo_ptr_indirection.c
+++ b/src/lib/eo/eo_ptr_indirection.c
@@ -246,7 +246,7 @@ _eo_obj_pointer_get(const Eo_Id obj_id)
246} 246}
247 247
248static inline _Eo_Id_Entry * 248static inline _Eo_Id_Entry *
249get_available_entry(_Eo_Ids_Table *table) 249_get_available_entry(_Eo_Ids_Table *table)
250{ 250{
251 _Eo_Id_Entry *entry = NULL; 251 _Eo_Id_Entry *entry = NULL;
252 252
@@ -270,7 +270,7 @@ get_available_entry(_Eo_Ids_Table *table)
270} 270}
271 271
272static inline _Eo_Id_Entry * 272static inline _Eo_Id_Entry *
273search_tables() 273_search_tables()
274{ 274{
275 _Eo_Ids_Table *table; 275 _Eo_Ids_Table *table;
276 _Eo_Id_Entry *entry; 276 _Eo_Id_Entry *entry;
@@ -297,9 +297,7 @@ search_tables()
297 entry = &(table->entries[0]); 297 entry = &(table->entries[0]);
298 } 298 }
299 else 299 else
300 { 300 entry = _get_available_entry(table);
301 entry = get_available_entry(table);
302 }
303 301
304 if (entry) 302 if (entry)
305 { 303 {
@@ -324,11 +322,11 @@ _eo_id_allocate(const _Eo *obj)
324 _Eo_Id_Entry *entry = NULL; 322 _Eo_Id_Entry *entry = NULL;
325 323
326 if (current_table.table) 324 if (current_table.table)
327 entry = get_available_entry(current_table.table); 325 entry = _get_available_entry(current_table.table);
328 326
329 if (!entry) 327 if (!entry)
330 { 328 {
331 entry = search_tables(); 329 entry = _search_tables();
332 if (!entry) 330 if (!entry)
333 return 0; 331 return 0;
334 } 332 }