Commit 25df5d5d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix another compiler warning

parent e1bc8209
......@@ -45,7 +45,7 @@ static const char mime_type[] = "application/sdp";
/*****************************************************************************
* Constructors
*****************************************************************************/
Message::Message(char type, uint16_t v, const char* ip)
Message::Message(uint16_t v, const char* ip)
{
version = v;
......
......@@ -24,8 +24,6 @@
#define SAP_ON 1
#define SAP_OFF 0
#define SAP_ANNOUNCE 0
#define SAP_DELETE 1
#define SAP_IPV4 4
#define SAP_IPV6 6
......@@ -36,7 +34,7 @@ class Message {
uint16_t version;
public:
Message(char message_type, uint16_t version, const char* ip);
Message(uint16_t version, const char* ip);
~Message();
bool AddProgram(Program*);
uint8_t* GetFinalMessage(void) { return msg; }
......
......@@ -222,7 +222,7 @@ int main(int argc, char *argv[])
}
/* Create a new message */
Message *message = new Message(SAP_ANNOUNCE, 0x4212+i, "1.2.3.4");
Message *message = new Message(0x4212+i, "1.2.3.4");
/* Add the program */
message->AddProgram(config.Programs[i]);
......
......@@ -40,7 +40,5 @@
#define SAP_ON 1
#define SAP_OFF 0
#define SAP_ANNOUNCE 0
#define SAP_DELETE 1
#define SAP_IPV4 4
#define SAP_IPV6 6
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