From 16fc4424016804f670fdf656d1efca5251d65692 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Fri, 29 Jun 2018 17:43:09 -0700 Subject: [PATCH] port needs to be a short int --- QnetVoice.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/QnetVoice.cpp b/QnetVoice.cpp index d688898..a5b8a47 100644 --- a/QnetVoice.cpp +++ b/QnetVoice.cpp @@ -93,7 +93,7 @@ void calcPFCS(unsigned char rawbytes[58]) } -bool dst_open(const char *ip, const int port) +bool dst_open(const char *ip, const short port) { int reuse = 1; @@ -309,7 +309,8 @@ int main(int argc, char *argv[]) time(&tNow); CRandom Random; - if (dst_open(IP_ADDRESS.c_str(), PORT)) + short int sport = (short int)PORT; + if (dst_open(IP_ADDRESS.c_str(), sport)) return 1; // Read and reformat and write packets