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

Fix a few compile warnings.

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

+ 1 - 1
exec/amf.c

@@ -2392,7 +2392,7 @@ static int amf_init_two_fn (struct conn_info *conn_info)
 
 static int message_handler_req_amf_componentregister (struct conn_info *conn_info, void *message)
 {
-	struct req_lib_amf_componentregister *req_lib_amf_componentregister = (struct req_amf_componentregister *)message;
+	struct req_lib_amf_componentregister *req_lib_amf_componentregister = (struct req_lib_amf_componentregister *)message;
 	struct req_exec_amf_componentregister req_exec_amf_componentregister;
 	struct iovec iovecs[2];
 

+ 0 - 1
exec/ckpt.c

@@ -3153,7 +3153,6 @@ static int message_handler_req_lib_ckpt_sectionoverwrite (struct conn_info *conn
 	struct iovec iovecs[2];
 	struct saCkptCheckpoint *checkpoint;
 	struct res_lib_ckpt_sectionoverwrite res_lib_ckpt_sectionoverwrite;
-	SaAisErrorT error = SA_AIS_ERR_NOT_EXIST;
 
 	log_printf (LOG_LEVEL_DEBUG, "Section overwrite from API fd %d\n", conn_info->fd);
 	checkpoint = ckpt_checkpoint_find_global (&req_lib_ckpt_sectionoverwrite->checkpointName);