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

Remove warning about unsigned/signed passed to strcpy

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1043 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 20 лет назад
Родитель
Сommit
562a8d87b4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      exec/amfconfig.c

+ 1 - 1
exec/amfconfig.c

@@ -685,7 +685,7 @@ int amf_config_read (struct amf_cluster *cluster, char **error_string)
 				healthcheck->next = comp->healthcheck_head;
 				comp->healthcheck_head = healthcheck;
 				healthcheck->comp = comp;
-				strcpy (healthcheck->safHealthcheckKey.key, trim_str (loc));
+				strcpy ((char *)healthcheck->safHealthcheckKey.key, trim_str (loc));
 				healthcheck->safHealthcheckKey.keyLen = strlen (loc);
 				current_parse = AMF_HEALTHCHECK;
 			} else if (strstr_rs (line, "}")) {