Renaming structs to evade conflicts with already existing code.

This commit is contained in:
Nicolás Ortega Froysa
2017-11-20 13:59:48 +01:00
parent 5b5660e5c4
commit e6be2716f4
4 changed files with 13 additions and 13 deletions

View File

@ -28,13 +28,13 @@ static std::uniform_int_distribution<dht::Value::Id> rand_id;
static std::map<time_t, int> sent_messages;
struct message *NeoComm_get_next_message(const char *channel_name) {
struct NeoComm_message *NeoComm_get_next_message(const char *channel_name) {
const std::string s_chan_name(channel_name);
if(channels[s_chan_name].msgs.empty())
return NULL;
const dht::ImMessage *new_msg = &channels[s_chan_name].msgs.front();
struct message *msg =
static_cast<struct message*>(malloc(sizeof(struct message)));
struct NeoComm_message *msg =
static_cast<struct NeoComm_message*>(malloc(sizeof(struct NeoComm_message)));
*msg = {
/*.msg =*/ new_msg->msg.c_str(),

View File

@ -113,8 +113,8 @@ int NeoComm_export_nodes(const char *node_file) {
return 1;
}
struct stats NeoComm_get_node_stats() {
struct stats statistics;
struct NeoComm_stats NeoComm_get_node_stats() {
struct NeoComm_stats statistics;
statistics.total = node.getNodesStats(
AF_UNSPEC,
&statistics.good,