Sfoglia il codice sorgente

ipc_cfg: Make coverity happy

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Jan Friesse 12 anni fa
parent
commit
8b02049eb8
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      include/corosync/ipc_cfg.h

+ 2 - 1
include/corosync/ipc_cfg.h

@@ -129,7 +129,8 @@ struct res_lib_cfg_get_node_addrs {
         struct qb_ipc_response_header header __attribute__((aligned(8)));
 	unsigned int family;
 	unsigned int num_addrs;
-	char addrs[TOTEMIP_ADDRLEN][0];
+	/* array of TOTEMIP_ADDRLEN items */
+	char addrs[];
 };
 
 struct req_lib_cfg_local_get {