Parcourir la source

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 il y a 12 ans
Parent
commit
f7beba46c5
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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 {