Commit eb2fa22e authored by Youness Alaoui's avatar Youness Alaoui
Browse files

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,
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;
}
......@@ -187,7 +187,7 @@ struct stun_agent_t {
StunAgentSavedIds sent_ids[STUN_AGENT_MAX_SAVED_IDS];
uint16_t *known_attributes;
StunAgentUsageFlags usage_flags;
char *software_attribute;
const char *software_attribute;
};
/**
......@@ -497,6 +497,6 @@ bool stun_agent_forget_transaction (StunAgent *agent, StunTransactionId id);
</note>
*
*/
void stun_agent_set_software (StunAgent *agent, char *software);
void stun_agent_set_software (StunAgent *agent, const char *software);
#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