Commit eb2fa22e authored by Youness Alaoui's avatar Youness Alaoui

stun_agent_set_software must also take a const char *, not just a char *

parent 07f53dfa
...@@ -684,7 +684,7 @@ stun_agent_find_unknowns (StunAgent *agent, const StunMessage * msg, ...@@ -684,7 +684,7 @@ stun_agent_find_unknowns (StunAgent *agent, const StunMessage * msg,
return count; return count;
} }
void stun_agent_set_software (StunAgent *agent, char *software) void stun_agent_set_software (StunAgent *agent, const char *software)
{ {
agent->software_attribute = software; agent->software_attribute = software;
} }
...@@ -187,7 +187,7 @@ struct stun_agent_t { ...@@ -187,7 +187,7 @@ struct stun_agent_t {
StunAgentSavedIds sent_ids[STUN_AGENT_MAX_SAVED_IDS]; StunAgentSavedIds sent_ids[STUN_AGENT_MAX_SAVED_IDS];
uint16_t *known_attributes; uint16_t *known_attributes;
StunAgentUsageFlags usage_flags; StunAgentUsageFlags usage_flags;
char *software_attribute; const char *software_attribute;
}; };
/** /**
...@@ -497,6 +497,6 @@ bool stun_agent_forget_transaction (StunAgent *agent, StunTransactionId id); ...@@ -497,6 +497,6 @@ bool stun_agent_forget_transaction (StunAgent *agent, StunTransactionId id);
</note> </note>
* *
*/ */
void stun_agent_set_software (StunAgent *agent, char *software); void stun_agent_set_software (StunAgent *agent, const char *software);
#endif /* _STUN_AGENT_H */ #endif /* _STUN_AGENT_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment