kopia lustrzana https://github.com/jamescoxon/dl-fldigi
Compile warnings
* Changed code to correct for some warning messages on newer gcc compilerspull/2/head
rodzic
8a7c4bf778
commit
136bcc2c45
|
|
@ -139,7 +139,7 @@ int contestia::unescape(int c)
|
||||||
|
|
||||||
int contestia::tx_process()
|
int contestia::tx_process()
|
||||||
{
|
{
|
||||||
int c, len;//, i;
|
int c = 0, len = 0;
|
||||||
unsigned char ch;
|
unsigned char ch;
|
||||||
|
|
||||||
if (tones != progdefaults.contestiatones ||
|
if (tones != progdefaults.contestiatones ||
|
||||||
|
|
|
||||||
|
|
@ -1138,25 +1138,32 @@ void makeEQSL(const char *message)
|
||||||
// eqsl url header
|
// eqsl url header
|
||||||
eQSL_url = "http://www.eqsl.cc/qslcard/importADIF.cfm?ADIFdata=upload <adIF_ver:5>2.1.9";
|
eQSL_url = "http://www.eqsl.cc/qslcard/importADIF.cfm?ADIFdata=upload <adIF_ver:5>2.1.9";
|
||||||
snprintf(sztemp, sizeof(sztemp),"<EQSL_USER:%d>%s<EQSL_PSWD:%d>%s",
|
snprintf(sztemp, sizeof(sztemp),"<EQSL_USER:%d>%s<EQSL_PSWD:%d>%s",
|
||||||
progdefaults.eqsl_id.length(), progdefaults.eqsl_id.c_str(),
|
static_cast<int>(progdefaults.eqsl_id.length()),
|
||||||
progdefaults.eqsl_pwd.length(), progdefaults.eqsl_pwd.c_str());
|
progdefaults.eqsl_id.c_str(),
|
||||||
|
static_cast<int>(progdefaults.eqsl_pwd.length()),
|
||||||
|
progdefaults.eqsl_pwd.c_str());
|
||||||
eQSL_url.append(sztemp);
|
eQSL_url.append(sztemp);
|
||||||
eQSL_url.append("<PROGRAMID:6>FLDIGI<EOH>");
|
eQSL_url.append("<PROGRAMID:6>FLDIGI<EOH>");
|
||||||
// eqsl nickname
|
// eqsl nickname
|
||||||
if (!progdefaults.eqsl_nick.empty()) {
|
if (!progdefaults.eqsl_nick.empty()) {
|
||||||
snprintf(sztemp, sizeof(sztemp), "<APP_EQSL_QTH_NICKNAME:%d>%s",
|
snprintf(sztemp, sizeof(sztemp), "<APP_EQSL_QTH_NICKNAME:%d>%s",
|
||||||
progdefaults.eqsl_nick.length(), progdefaults.eqsl_nick.c_str());
|
static_cast<int>(progdefaults.eqsl_nick.length()),
|
||||||
|
progdefaults.eqsl_nick.c_str());
|
||||||
eQSL_url.append(sztemp);
|
eQSL_url.append(sztemp);
|
||||||
}
|
}
|
||||||
|
|
||||||
// eqsl record
|
// eqsl record
|
||||||
// band
|
// band
|
||||||
tempstr = band_name(band(wf->rfcarrier()));
|
tempstr = band_name(band(wf->rfcarrier()));
|
||||||
snprintf(sztemp, sizeof(sztemp), "<BAND:%d>%s", tempstr.length(), tempstr.c_str());
|
snprintf(sztemp, sizeof(sztemp), "<BAND:%d>%s",
|
||||||
|
static_cast<int>(tempstr.length()),
|
||||||
|
tempstr.c_str());
|
||||||
eQSL_url.append(sztemp);
|
eQSL_url.append(sztemp);
|
||||||
// call
|
// call
|
||||||
tempstr = inpCall->value();
|
tempstr = inpCall->value();
|
||||||
snprintf(sztemp, sizeof(sztemp), "<CALL:%d>%s", tempstr.length(), tempstr.c_str());
|
snprintf(sztemp, sizeof(sztemp), "<CALL:%d>%s",
|
||||||
|
static_cast<int>(tempstr.length()),
|
||||||
|
tempstr.c_str());
|
||||||
eQSL_url.append(sztemp);
|
eQSL_url.append(sztemp);
|
||||||
// mode
|
// mode
|
||||||
tempstr = mode_info[active_modem->get_mode()].adif_name;
|
tempstr = mode_info[active_modem->get_mode()].adif_name;
|
||||||
|
|
@ -1181,22 +1188,32 @@ void makeEQSL(const char *message)
|
||||||
(tempstr.find("QPSK500R") != std::string::npos))
|
(tempstr.find("QPSK500R") != std::string::npos))
|
||||||
tempstr = "QPSK125";
|
tempstr = "QPSK125";
|
||||||
|
|
||||||
snprintf(sztemp, sizeof(sztemp), "<MODE:%d>%s", tempstr.length(), tempstr.c_str());
|
snprintf(sztemp, sizeof(sztemp), "<MODE:%d>%s",
|
||||||
|
static_cast<int>(tempstr.length()),
|
||||||
|
tempstr.c_str());
|
||||||
eQSL_url.append(sztemp);
|
eQSL_url.append(sztemp);
|
||||||
// qso date
|
// qso date
|
||||||
snprintf(sztemp, sizeof(sztemp), "<QSO_DATE:%d>%s", sDate_on.length(), sDate_on.c_str());
|
snprintf(sztemp, sizeof(sztemp), "<QSO_DATE:%d>%s",
|
||||||
|
static_cast<int>(sDate_on.length()),
|
||||||
|
sDate_on.c_str());
|
||||||
eQSL_url.append(sztemp);
|
eQSL_url.append(sztemp);
|
||||||
// qso time
|
// qso time
|
||||||
tempstr = inpTimeOn->value();
|
tempstr = inpTimeOn->value();
|
||||||
snprintf(sztemp, sizeof(sztemp), "<TIME_ON:%d>%s", tempstr.length(), tempstr.c_str());
|
snprintf(sztemp, sizeof(sztemp), "<TIME_ON:%d>%s",
|
||||||
|
static_cast<int>(tempstr.length()),
|
||||||
|
tempstr.c_str());
|
||||||
eQSL_url.append(sztemp);
|
eQSL_url.append(sztemp);
|
||||||
// rst sent
|
// rst sent
|
||||||
tempstr = inpRstOut->value();
|
tempstr = inpRstOut->value();
|
||||||
snprintf(sztemp, sizeof(sztemp), "<RST_SENT:%d>%s", tempstr.length(), tempstr.c_str());
|
snprintf(sztemp, sizeof(sztemp), "<RST_SENT:%d>%s",
|
||||||
|
static_cast<int>(tempstr.length()),
|
||||||
|
tempstr.c_str());
|
||||||
eQSL_url.append(sztemp);
|
eQSL_url.append(sztemp);
|
||||||
// message
|
// message
|
||||||
if (!msg.empty()) {
|
if (!msg.empty()) {
|
||||||
snprintf(sztemp, sizeof(sztemp), "<QSLMSG:%d>%s", msg.length(), msg.c_str());
|
snprintf(sztemp, sizeof(sztemp), "<QSLMSG:%d>%s",
|
||||||
|
static_cast<int>(msg.length()),
|
||||||
|
msg.c_str());
|
||||||
eQSL_url.append(sztemp);
|
eQSL_url.append(sztemp);
|
||||||
}
|
}
|
||||||
eQSL_url.append("<EOR>");
|
eQSL_url.append("<EOR>");
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ int olivia::unescape(int c)
|
||||||
|
|
||||||
int olivia::tx_process()
|
int olivia::tx_process()
|
||||||
{
|
{
|
||||||
int c, len;//, i;
|
int c = 0, len = 0;
|
||||||
unsigned char ch;
|
unsigned char ch;
|
||||||
|
|
||||||
if (tones != progdefaults.oliviatones ||
|
if (tones != progdefaults.oliviatones ||
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,10 @@ namespace XmlRpc {
|
||||||
//! An interface allowing custom handling of error message reporting.
|
//! An interface allowing custom handling of error message reporting.
|
||||||
class XmlRpcErrorHandler {
|
class XmlRpcErrorHandler {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
XmlRpcErrorHandler() {}
|
||||||
|
~XmlRpcErrorHandler() {}
|
||||||
|
|
||||||
//! Returns a pointer to the currently installed error handling object.
|
//! Returns a pointer to the currently installed error handling object.
|
||||||
static XmlRpcErrorHandler* getErrorHandler()
|
static XmlRpcErrorHandler* getErrorHandler()
|
||||||
{ return _errorHandler; }
|
{ return _errorHandler; }
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue