mirror of
https://github.com/g4klx/DAPNETGateway.git
synced 2026-08-26 12:32:45 -04:00
Code cleanups.
This commit is contained in:
parent
ad31455d8f
commit
b1197eef49
3 changed files with 14 additions and 14 deletions
|
|
@ -21,6 +21,8 @@
|
|||
#include "Utils.h"
|
||||
#include "Log.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <cstdio>
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
|
|
@ -58,10 +60,9 @@ bool CDAPNETNetwork::login()
|
|||
{
|
||||
LogMessage("Logging into DAPNET");
|
||||
|
||||
std::transform(m_callsign.begin(), m_callsign.end(), m_callsign.begin(), ::tolower);
|
||||
|
||||
char login[200U];
|
||||
for(unsigned int i = 0; i < m_callsign.length(); ++i) {
|
||||
m_callsign[i] = tolower(m_callsign[i]);
|
||||
}
|
||||
::snprintf(login, 200, "[MMDVM v%s %s %s]\r\n", m_version, m_callsign.c_str(), m_authKey.c_str());
|
||||
|
||||
return write((unsigned char*)login);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue