[Xenomai-git] Philippe Gerum : lib: use symbolic constant for name length
Module: xenomai-forge Branch: rtdm-api-waitqueues Commit: 9ad93d95a3dce2f6cb6c815847133d90f24de288 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=9ad93d95a3dce2f6cb6c815847133d90f24de288 Author: Philippe Gerum Date: Wed Apr 16 11:07:04 2014 +0200 lib: use symbolic constant for name length --- include/alchemy/alarm.h |2 +- include/alchemy/buffer.h |2 +- include/alchemy/cond.h |2 +- include/alchemy/event.h |2 +- include/alchemy/heap.h |2 +- include/alchemy/mutex.h |2 +- include/alchemy/queue.h |2 +- include/alchemy/sem.h|2 +- include/alchemy/task.h |2 +- include/copperplate/clockobj.h |1 + include/copperplate/reference.h |1 + lib/alchemy/alarm.h |2 +- lib/alchemy/buffer.h |2 +- lib/alchemy/cond.h |2 +- lib/alchemy/event.h |2 +- lib/alchemy/heap.c |2 +- lib/alchemy/heap.h |2 +- lib/alchemy/mutex.h |2 +- lib/alchemy/pipe.h |2 +- lib/alchemy/queue.h |2 +- lib/alchemy/sem.h|2 +- lib/alchemy/task.h |2 +- lib/copperplate/internal.h |3 ++- lib/copperplate/regd/fs-common.c |2 +- lib/copperplate/regd/sysregfs.h |2 +- lib/psos/pt.h|2 +- lib/psos/queue.h |2 +- lib/psos/rn.h|2 +- lib/psos/sem.h |2 +- lib/psos/task.h |2 +- lib/vxworks/msgQLib.h|2 +- lib/vxworks/taskLib.h|2 +- 32 files changed, 33 insertions(+), 30 deletions(-) diff --git a/include/alchemy/alarm.h b/include/alchemy/alarm.h index 61d3c5c..fd84150 100644 --- a/include/alchemy/alarm.h +++ b/include/alchemy/alarm.h @@ -43,7 +43,7 @@ struct RT_ALARM_INFO { /** * Name of alarm object. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_ALARM_INFO RT_ALARM_INFO; diff --git a/include/alchemy/buffer.h b/include/alchemy/buffer.h index 27be2a5..7e1f111 100644 --- a/include/alchemy/buffer.h +++ b/include/alchemy/buffer.h @@ -61,7 +61,7 @@ struct RT_BUFFER_INFO { /** * Name of the buffer. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_BUFFER_INFO RT_BUFFER_INFO; diff --git a/include/alchemy/cond.h b/include/alchemy/cond.h index 4667f14..3b6868b 100644 --- a/include/alchemy/cond.h +++ b/include/alchemy/cond.h @@ -40,7 +40,7 @@ struct RT_COND_INFO { /** * Name of condition variable. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_COND_INFO RT_COND_INFO; diff --git a/include/alchemy/event.h b/include/alchemy/event.h index 14b313d..980e4ce 100644 --- a/include/alchemy/event.h +++ b/include/alchemy/event.h @@ -55,7 +55,7 @@ struct RT_EVENT_INFO { /** * Name of event flag group. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_EVENT_INFO RT_EVENT_INFO; diff --git a/include/alchemy/heap.h b/include/alchemy/heap.h index b331136..2ff02ef 100644 --- a/include/alchemy/heap.h +++ b/include/alchemy/heap.h @@ -71,7 +71,7 @@ struct RT_HEAP_INFO { /** * Name of heap. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_HEAP_INFO RT_HEAP_INFO; diff --git a/include/alchemy/mutex.h b/include/alchemy/mutex.h index 9b4e36c..6b3d126 100644 --- a/include/alchemy/mutex.h +++ b/include/alchemy/mutex.h @@ -46,7 +46,7 @@ struct RT_MUTEX_INFO { /** * Name of mutex. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_MUTEX_INFO RT_MUTEX_INFO; diff --git a/include/alchemy/queue.h b/include/alchemy/queue.h index dba385c..d5a035c 100644 --- a/include/alchemy/queue.h +++ b/include/alchemy/queue.h @@ -81,7 +81,7 @@ struct RT_QUEUE_INFO { /** * Name of message queue. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_QUEUE_INFO RT_QUEUE_INFO; diff --git a/include/alchemy/sem.h b/include/alchemy/sem.h index 51caf1d..94d98f7 100644 --- a/include/alchemy/sem.h +++ b/include/alchemy/sem.h @@ -52,7 +52,7 @@ struct RT_SEM_INFO { /** * Name of semaphore. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_SEM_INFO RT_SEM_INFO; diff --git a/include/alchemy/task.h b/include/alchemy/task.h index b8f2ec0..7a2eb1c 100644 --- a/include/alchemy/task.h +++ b/include/alchemy/task.h @@ -75,7 +75,7 @@ struct RT_TASK_INFO { /** * Name of task. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_TASK_INFO RT_TASK_INFO
[Xenomai-git] Philippe Gerum : lib: use symbolic constant for name length
Module: xenomai-forge Branch: next Commit: 9ad93d95a3dce2f6cb6c815847133d90f24de288 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=9ad93d95a3dce2f6cb6c815847133d90f24de288 Author: Philippe Gerum Date: Wed Apr 16 11:07:04 2014 +0200 lib: use symbolic constant for name length --- include/alchemy/alarm.h |2 +- include/alchemy/buffer.h |2 +- include/alchemy/cond.h |2 +- include/alchemy/event.h |2 +- include/alchemy/heap.h |2 +- include/alchemy/mutex.h |2 +- include/alchemy/queue.h |2 +- include/alchemy/sem.h|2 +- include/alchemy/task.h |2 +- include/copperplate/clockobj.h |1 + include/copperplate/reference.h |1 + lib/alchemy/alarm.h |2 +- lib/alchemy/buffer.h |2 +- lib/alchemy/cond.h |2 +- lib/alchemy/event.h |2 +- lib/alchemy/heap.c |2 +- lib/alchemy/heap.h |2 +- lib/alchemy/mutex.h |2 +- lib/alchemy/pipe.h |2 +- lib/alchemy/queue.h |2 +- lib/alchemy/sem.h|2 +- lib/alchemy/task.h |2 +- lib/copperplate/internal.h |3 ++- lib/copperplate/regd/fs-common.c |2 +- lib/copperplate/regd/sysregfs.h |2 +- lib/psos/pt.h|2 +- lib/psos/queue.h |2 +- lib/psos/rn.h|2 +- lib/psos/sem.h |2 +- lib/psos/task.h |2 +- lib/vxworks/msgQLib.h|2 +- lib/vxworks/taskLib.h|2 +- 32 files changed, 33 insertions(+), 30 deletions(-) diff --git a/include/alchemy/alarm.h b/include/alchemy/alarm.h index 61d3c5c..fd84150 100644 --- a/include/alchemy/alarm.h +++ b/include/alchemy/alarm.h @@ -43,7 +43,7 @@ struct RT_ALARM_INFO { /** * Name of alarm object. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_ALARM_INFO RT_ALARM_INFO; diff --git a/include/alchemy/buffer.h b/include/alchemy/buffer.h index 27be2a5..7e1f111 100644 --- a/include/alchemy/buffer.h +++ b/include/alchemy/buffer.h @@ -61,7 +61,7 @@ struct RT_BUFFER_INFO { /** * Name of the buffer. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_BUFFER_INFO RT_BUFFER_INFO; diff --git a/include/alchemy/cond.h b/include/alchemy/cond.h index 4667f14..3b6868b 100644 --- a/include/alchemy/cond.h +++ b/include/alchemy/cond.h @@ -40,7 +40,7 @@ struct RT_COND_INFO { /** * Name of condition variable. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_COND_INFO RT_COND_INFO; diff --git a/include/alchemy/event.h b/include/alchemy/event.h index 14b313d..980e4ce 100644 --- a/include/alchemy/event.h +++ b/include/alchemy/event.h @@ -55,7 +55,7 @@ struct RT_EVENT_INFO { /** * Name of event flag group. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_EVENT_INFO RT_EVENT_INFO; diff --git a/include/alchemy/heap.h b/include/alchemy/heap.h index b331136..2ff02ef 100644 --- a/include/alchemy/heap.h +++ b/include/alchemy/heap.h @@ -71,7 +71,7 @@ struct RT_HEAP_INFO { /** * Name of heap. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_HEAP_INFO RT_HEAP_INFO; diff --git a/include/alchemy/mutex.h b/include/alchemy/mutex.h index 9b4e36c..6b3d126 100644 --- a/include/alchemy/mutex.h +++ b/include/alchemy/mutex.h @@ -46,7 +46,7 @@ struct RT_MUTEX_INFO { /** * Name of mutex. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_MUTEX_INFO RT_MUTEX_INFO; diff --git a/include/alchemy/queue.h b/include/alchemy/queue.h index dba385c..d5a035c 100644 --- a/include/alchemy/queue.h +++ b/include/alchemy/queue.h @@ -81,7 +81,7 @@ struct RT_QUEUE_INFO { /** * Name of message queue. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_QUEUE_INFO RT_QUEUE_INFO; diff --git a/include/alchemy/sem.h b/include/alchemy/sem.h index 51caf1d..94d98f7 100644 --- a/include/alchemy/sem.h +++ b/include/alchemy/sem.h @@ -52,7 +52,7 @@ struct RT_SEM_INFO { /** * Name of semaphore. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_SEM_INFO RT_SEM_INFO; diff --git a/include/alchemy/task.h b/include/alchemy/task.h index b8f2ec0..7a2eb1c 100644 --- a/include/alchemy/task.h +++ b/include/alchemy/task.h @@ -75,7 +75,7 @@ struct RT_TASK_INFO { /** * Name of task. */ - char name[32]; + char name[XNOBJECT_NAME_LEN]; }; typedef struct RT_TASK_INFO RT_TASK_INFO; diff --git a/