Ver código fonte

qdevice: Remove compiler warning

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Jan Friesse 10 anos atrás
pai
commit
cfe273b275
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      qdevices/qdevice-model-net.c

+ 5 - 1
qdevices/qdevice-model-net.c

@@ -104,7 +104,7 @@ qdevice_model_net_destroy(struct qdevice_instance *instance)
 		qdevice_log_nss(LOG_WARNING, "Can't shutdown NSS");
 		qdevice_log_nss(LOG_WARNING, "Can't shutdown NSS");
 	}
 	}
 
 
-	if (PR_Cleanup() != SECSuccess) {
+	if (PR_Cleanup() != PR_SUCCESS) {
 		qdevice_log_nss(LOG_WARNING, "Can't shutdown NSPR");
 		qdevice_log_nss(LOG_WARNING, "Can't shutdown NSPR");
 	}
 	}
 
 
@@ -466,6 +466,10 @@ qdevice_model_net_votequorum_expected_votes_notify(struct qdevice_instance *inst
 
 
 	net_instance = instance->model_data;
 	net_instance = instance->model_data;
 
 
+	qdevice_log(LOG_DEBUG, "qdevice_model_net_votequorum_expected_votes_notify"
+	    " (expected votes old=%"PRIu32" / new=%"PRIu32")",
+	    net_instance->qdevice_instance_ptr->vq_expected_votes, expected_votes);
+
 	return (0);
 	return (0);
 }
 }