Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit a420c39d authored by rswindell's avatar rswindell

Constification to appease the C++ gods:

fidodefs.h:47:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 #define FIDO_CHARSET_UTF8 "CHRS: UTF-8 4" /* FTS-5003 */
                           ^
writemsg.cpp:645:15: note: in expansion of macro 'FIDO_CHARSET_UTF8'
    *charset = FIDO_CHARSET_UTF8;
parent fc5b0eb4
...@@ -43,8 +43,8 @@ bool sbbs_t::bulkmail(uchar *ar) ...@@ -43,8 +43,8 @@ bool sbbs_t::bulkmail(uchar *ar)
char str[256],title[LEN_TITLE+1]; char str[256],title[LEN_TITLE+1];
char msgpath[MAX_PATH+1]; char msgpath[MAX_PATH+1];
char* msgbuf; char* msgbuf;
char* editor=NULL; const char* editor=NULL;
char* charset=NULL; const char* charset=NULL;
char tmp[512]; char tmp[512];
int i,j,x; int i,j,x;
long msgs=0; long msgs=0;
......
...@@ -49,8 +49,8 @@ bool sbbs_t::email(int usernumber, const char *top, const char *subj, long mode, ...@@ -49,8 +49,8 @@ bool sbbs_t::email(int usernumber, const char *top, const char *subj, long mode,
,buf[SDT_BLOCK_LEN]; ,buf[SDT_BLOCK_LEN];
char tmp[512]; char tmp[512];
char title[LEN_TITLE+1] = ""; char title[LEN_TITLE+1] = "";
char* editor=NULL; const char* editor=NULL;
char* charset=NULL; const char* charset=NULL;
uint16_t msgattr=0; uint16_t msgattr=0;
uint16_t xlat=XLAT_NONE; uint16_t xlat=XLAT_NONE;
int i,j,x,file; int i,j,x,file;
......
...@@ -108,8 +108,8 @@ bool sbbs_t::netmail(const char *into, const char *title, long mode, smb_t* resm ...@@ -108,8 +108,8 @@ bool sbbs_t::netmail(const char *into, const char *title, long mode, smb_t* resm
char subj[FIDO_SUBJ_LEN]= ""; char subj[FIDO_SUBJ_LEN]= "";
char msgpath[MAX_PATH+1]; char msgpath[MAX_PATH+1];
char tmp[512]; char tmp[512];
char* editor=NULL; const char* editor=NULL;
char* charset=NULL; const char* charset=NULL;
int file,x; int file,x;
uint i; uint i;
long length,l; long length,l;
......
...@@ -48,8 +48,8 @@ bool sbbs_t::inetmail(const char *into, const char *subj, long mode, smb_t* resm ...@@ -48,8 +48,8 @@ bool sbbs_t::inetmail(const char *into, const char *subj, long mode, smb_t* resm
char title[256] = ""; char title[256] = "";
char name[256] = ""; char name[256] = "";
char addr[256] = ""; char addr[256] = "";
char* editor=NULL; const char* editor=NULL;
char* charset=NULL; const char* charset=NULL;
char your_addr[128]; char your_addr[128];
ushort xlat=XLAT_NONE,net=NET_INTERNET; ushort xlat=XLAT_NONE,net=NET_INTERNET;
int i,j,x,file; int i,j,x,file;
...@@ -322,8 +322,8 @@ bool sbbs_t::qnetmail(const char *into, const char *subj, long mode, smb_t* resm ...@@ -322,8 +322,8 @@ bool sbbs_t::qnetmail(const char *into, const char *subj, long mode, smb_t* resm
char tmp[512]; char tmp[512];
char title[128] = ""; char title[128] = "";
char to[128] = ""; char to[128] = "";
char* editor=NULL; const char* editor=NULL;
char* charset=NULL; const char* charset=NULL;
ushort xlat=XLAT_NONE,net=NET_QWK,touser; ushort xlat=XLAT_NONE,net=NET_QWK,touser;
int i,j,x,file; int i,j,x,file;
ulong length,offset; ulong length,offset;
......
...@@ -78,8 +78,8 @@ bool sbbs_t::postmsg(uint subnum, long wm_mode, smb_t* resmb, smbmsg_t* remsg) ...@@ -78,8 +78,8 @@ bool sbbs_t::postmsg(uint subnum, long wm_mode, smb_t* resmb, smbmsg_t* remsg)
char touser[64] = ""; char touser[64] = "";
char from[64]; char from[64];
char tags[64] = ""; char tags[64] = "";
char* editor=NULL; const char* editor=NULL;
char* charset=NULL; const char* charset=NULL;
char* msgbuf=NULL; char* msgbuf=NULL;
uint16_t xlat; uint16_t xlat;
ushort msgattr = 0; ushort msgattr = 0;
......
...@@ -651,7 +651,7 @@ public: ...@@ -651,7 +651,7 @@ public:
/* writemsg.cpp */ /* writemsg.cpp */
void automsg(void); void automsg(void);
bool writemsg(const char *str, const char *top, char *subj, long mode, uint subnum bool writemsg(const char *str, const char *top, char *subj, long mode, uint subnum
,const char *to, const char* from, char** editor=NULL, char** charset=NULL); ,const char *to, const char* from, const char** editor=NULL, const char** charset=NULL);
char* quotes_fname(int xedit, char* buf, size_t len); char* quotes_fname(int xedit, char* buf, size_t len);
char* msg_tmp_fname(int xedit, char* fname, size_t len); char* msg_tmp_fname(int xedit, char* fname, size_t len);
char putmsg(const char *str, long mode, long org_cols = 0); char putmsg(const char *str, long mode, long org_cols = 0);
......
...@@ -235,7 +235,7 @@ int sbbs_t::process_edited_file(const char* src, const char* dest, long mode, un ...@@ -235,7 +235,7 @@ int sbbs_t::process_edited_file(const char* src, const char* dest, long mode, un
/* 'dest' contains a text description of where the message is going. */ /* 'dest' contains a text description of where the message is going. */
/****************************************************************************/ /****************************************************************************/
bool sbbs_t::writemsg(const char *fname, const char *top, char *subj, long mode, uint subnum bool sbbs_t::writemsg(const char *fname, const char *top, char *subj, long mode, uint subnum
,const char *to, const char* from, char** editor, char** charset) ,const char *to, const char* from, const char** editor, const char** charset)
{ {
char str[256],quote[128],c,*buf,*p,*tp char str[256],quote[128],c,*buf,*p,*tp
,useron_level; ,useron_level;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment