Fixed C++11 warnings.
invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
This commit is contained in:
@@ -450,9 +450,9 @@ SMTPProtocol::Open(const char *address, int port, bool esmtp)
|
|||||||
|
|
||||||
char *cmd = new char[::strlen(localhost)+8];
|
char *cmd = new char[::strlen(localhost)+8];
|
||||||
if (!esmtp)
|
if (!esmtp)
|
||||||
::sprintf(cmd,"HELO %s"CRLF, localhost);
|
::sprintf(cmd,"HELO %s" CRLF, localhost);
|
||||||
else
|
else
|
||||||
::sprintf(cmd,"EHLO %s"CRLF, localhost);
|
::sprintf(cmd,"EHLO %s" CRLF, localhost);
|
||||||
|
|
||||||
if (SendCommand(cmd) != B_OK) {
|
if (SendCommand(cmd) != B_OK) {
|
||||||
delete[] cmd;
|
delete[] cmd;
|
||||||
@@ -467,7 +467,7 @@ SMTPProtocol::Open(const char *address, int port, bool esmtp)
|
|||||||
|
|
||||||
SSL_library_init();
|
SSL_library_init();
|
||||||
RAND_seed(this,sizeof(SMTPProtocol));
|
RAND_seed(this,sizeof(SMTPProtocol));
|
||||||
::sprintf(cmd, "STARTTLS"CRLF);
|
::sprintf(cmd, "STARTTLS" CRLF);
|
||||||
|
|
||||||
if ((p = ::strstr(res, "STARTTLS")) != NULL) {
|
if ((p = ::strstr(res, "STARTTLS")) != NULL) {
|
||||||
// Server advertises STARTTLS support
|
// Server advertises STARTTLS support
|
||||||
@@ -489,9 +489,9 @@ SMTPProtocol::Open(const char *address, int port, bool esmtp)
|
|||||||
|
|
||||||
// Should send EHLO command again
|
// Should send EHLO command again
|
||||||
if(!esmtp)
|
if(!esmtp)
|
||||||
::sprintf(cmd, "HELO %s"CRLF, localhost);
|
::sprintf(cmd, "HELO %s" CRLF, localhost);
|
||||||
else
|
else
|
||||||
::sprintf(cmd, "EHLO %s"CRLF, localhost);
|
::sprintf(cmd, "EHLO %s" CRLF, localhost);
|
||||||
|
|
||||||
if (SendCommand(cmd) != B_OK) {
|
if (SendCommand(cmd) != B_OK) {
|
||||||
delete[] cmd;
|
delete[] cmd;
|
||||||
@@ -604,7 +604,7 @@ SMTPProtocol::Login(const char *_login, const char *password)
|
|||||||
// required for authentication to SMTP-servers. Integrity-
|
// required for authentication to SMTP-servers. Integrity-
|
||||||
// and confidentiality-protection are not implemented, as
|
// and confidentiality-protection are not implemented, as
|
||||||
// they are provided by the use of OpenSSL.
|
// they are provided by the use of OpenSSL.
|
||||||
SendCommand("AUTH DIGEST-MD5"CRLF);
|
SendCommand("AUTH DIGEST-MD5" CRLF);
|
||||||
const char *res = fLog.String();
|
const char *res = fLog.String();
|
||||||
|
|
||||||
if (strncmp(res, "334", 3) != 0)
|
if (strncmp(res, "334", 3) != 0)
|
||||||
@@ -677,7 +677,7 @@ SMTPProtocol::Login(const char *_login, const char *password)
|
|||||||
}
|
}
|
||||||
if (fAuthType & CRAM_MD5) {
|
if (fAuthType & CRAM_MD5) {
|
||||||
//******* CRAM-MD5 Authentication ( tested. works fine [with Cyrus SASL] )
|
//******* CRAM-MD5 Authentication ( tested. works fine [with Cyrus SASL] )
|
||||||
SendCommand("AUTH CRAM-MD5"CRLF);
|
SendCommand("AUTH CRAM-MD5" CRLF);
|
||||||
const char *res = fLog.String();
|
const char *res = fLog.String();
|
||||||
|
|
||||||
if (strncmp(res, "334", 3) != 0)
|
if (strncmp(res, "334", 3) != 0)
|
||||||
@@ -715,7 +715,7 @@ SMTPProtocol::Login(const char *_login, const char *password)
|
|||||||
//******* LOGIN Authentication ( tested. works fine)
|
//******* LOGIN Authentication ( tested. works fine)
|
||||||
ssize_t encodedsize; // required by our base64 implementation
|
ssize_t encodedsize; // required by our base64 implementation
|
||||||
|
|
||||||
SendCommand("AUTH LOGIN"CRLF);
|
SendCommand("AUTH LOGIN" CRLF);
|
||||||
const char *res = fLog.String();
|
const char *res = fLog.String();
|
||||||
|
|
||||||
if (strncmp(res, "334", 3) != 0)
|
if (strncmp(res, "334", 3) != 0)
|
||||||
@@ -938,9 +938,9 @@ SMTPProtocol::Send(const char* to, const char* from, BPositionIO *message)
|
|||||||
delete [] data;
|
delete [] data;
|
||||||
|
|
||||||
if (messageEndedWithCRLF)
|
if (messageEndedWithCRLF)
|
||||||
cmd = "."CRLF; // The standard says don't add extra CRLF.
|
cmd = "." CRLF; // The standard says don't add extra CRLF.
|
||||||
else
|
else
|
||||||
cmd = CRLF"."CRLF;
|
cmd = CRLF "." CRLF;
|
||||||
|
|
||||||
if (SendCommand(cmd.String()) != B_OK)
|
if (SendCommand(cmd.String()) != B_OK)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|||||||
@@ -39,9 +39,9 @@ static const uint8 kCursorData[] = { 16 /* size, 16x16 */,
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#define TRACE(x...) /*printf("RemoteView: "x)*/
|
#define TRACE(x...) /*printf("RemoteView: " x)*/
|
||||||
#define TRACE_ALWAYS(x...) printf("RemoteView: "x)
|
#define TRACE_ALWAYS(x...) printf("RemoteView: " x)
|
||||||
#define TRACE_ERROR(x...) printf("RemoteView: "x)
|
#define TRACE_ERROR(x...) printf("RemoteView: " x)
|
||||||
|
|
||||||
|
|
||||||
typedef struct engine_state {
|
typedef struct engine_state {
|
||||||
|
|||||||
@@ -31,9 +31,9 @@
|
|||||||
#define NAME "TV"
|
#define NAME "TV"
|
||||||
#define REVISION "unknown"
|
#define REVISION "unknown"
|
||||||
#define VERSION "1.1"
|
#define VERSION "1.1"
|
||||||
#define BUILD __DATE__ " "__TIME__
|
#define BUILD __DATE__ " " __TIME__
|
||||||
#define COPYRIGHT B_UTF8_COPYRIGHT" Marcus Overhagen 2005-2007"
|
#define COPYRIGHT B_UTF8_COPYRIGHT " Marcus Overhagen 2005-2007"
|
||||||
#define INFO1 "DVB - Digital Video Broadcasting TV"
|
#define INFO1 "DVB - Digital Video Broadcasting TV"
|
||||||
#define APP_SIG "application/x-vnd.Haiku."NAME
|
#define APP_SIG "application/x-vnd.Haiku." NAME
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -239,7 +239,8 @@ GeneralView::_CanFindServer(entry_ref* ref)
|
|||||||
volume.GetName(volName);
|
volume.GetName(volName);
|
||||||
|
|
||||||
BQuery *query = new BQuery();
|
BQuery *query = new BQuery();
|
||||||
query->SetPredicate("(BEOS:APP_SIG==\""kNotificationServerSignature"\")");
|
query->SetPredicate("(BEOS:APP_SIG==\"" kNotificationServerSignature
|
||||||
|
"\")");
|
||||||
query->SetVolume(&volume);
|
query->SetVolume(&volume);
|
||||||
query->Fetch();
|
query->Fetch();
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define TRACE(x...) /*debug_printf("NetReceiver: "x)*/
|
#define TRACE(x...) /*debug_printf("NetReceiver: " x)*/
|
||||||
#define TRACE_ERROR(x...) debug_printf("NetReceiver: "x)
|
#define TRACE_ERROR(x...) debug_printf("NetReceiver: " x)
|
||||||
|
|
||||||
|
|
||||||
NetReceiver::NetReceiver(BNetEndpoint *listener, StreamingRingBuffer *target)
|
NetReceiver::NetReceiver(BNetEndpoint *listener, StreamingRingBuffer *target)
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define TRACE(x...) /*debug_printf("NetSender: "x)*/
|
#define TRACE(x...) /*debug_printf("NetSender: " x)*/
|
||||||
#define TRACE_ERROR(x...) debug_printf("NetSender: "x)
|
#define TRACE_ERROR(x...) debug_printf("NetSender: " x)
|
||||||
|
|
||||||
|
|
||||||
NetSender::NetSender(BNetEndpoint *endpoint, StreamingRingBuffer *source)
|
NetSender::NetSender(BNetEndpoint *endpoint, StreamingRingBuffer *source)
|
||||||
|
|||||||
Reference in New Issue
Block a user