1
0
Fork 0

Merge pull request #82 from juribeparada/master

Fix compilation in macOS
ycs232-kbc
Jonathan Naylor 8 years ago committed by GitHub
commit 2423a67ae6

@ -682,6 +682,12 @@ void CWiresX::sendAllReply()
data[offset + 49U] = 0x0DU; data[offset + 49U] = 0x0DU;
} }
unsigned int k = 1029U - offset;
for(unsigned int i = 0U; i < k; i++)
data[i + offset] = 0x20U;
offset += k;
data[offset + 0U] = 0x03U; // End of data marker data[offset + 0U] = 0x03U; // End of data marker
data[offset + 1U] = CCRC::addCRC(data, offset + 1U); data[offset + 1U] = CCRC::addCRC(data, offset + 1U);

@ -45,6 +45,7 @@ const char* DEFAULT_INI_FILE = "/etc/YSFGateway.ini";
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <clocale>
int main(int argc, char** argv) int main(int argc, char** argv)
{ {

Loading…
Cancel
Save