Просмотр исходного кода

ipc_glue: Introduce constant for service name len

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
Jan Friesse 12 лет назад
Родитель
Сommit
f7beba46c5
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      exec/ipc_glue.c

+ 3 - 1
exec/ipc_glue.c

@@ -70,10 +70,12 @@ static int32_t ipc_fc_totem_queue_level; /* percentage used */
 static int32_t ipc_fc_sync_in_process; /* boolean */
 static int32_t ipc_allow_connections = 0; /* boolean */
 
+#define CS_IPCS_MAPPER_SERV_NAME		256
+
 struct cs_ipcs_mapper {
 	int32_t id;
 	qb_ipcs_service_t *inst;
-	char name[256];
+	char name[CS_IPCS_MAPPER_SERV_NAME];
 };
 
 struct outq_item {