Skip to content

Commit

Permalink
declare msg_create() with parameter
Browse files Browse the repository at this point in the history
- even not used, one is given when function is executed
- fix for warning: passing arguments to 'msg_create' without a prototype
is deprecated in all versions of C and is not supported in C2x
  • Loading branch information
miconda authored and Kaian committed Oct 16, 2024
1 parent 6ee2c9c commit 2fc8fe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sip_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "sip.h"

sip_msg_t *
msg_create()
msg_create(const char *payload)
{
sip_msg_t *msg;
if (!(msg = sng_malloc(sizeof(sip_msg_t))))
Expand Down
2 changes: 1 addition & 1 deletion src/sip_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ struct sip_msg {
* @return a new allocated message
*/
sip_msg_t *
msg_create();
msg_create(const char *payload);

/**
* @brief Destroy a SIP message and free its memory
Expand Down

0 comments on commit 2fc8fe0

Please sign in to comment.