initial illumos port
This commit is contained in:
committed by
Jon Trulson
parent
3c14b8b5ce
commit
468d576030
@@ -160,7 +160,7 @@ DtMailServer::set_password(char *password)
|
||||
//
|
||||
// len - Length of message.
|
||||
//
|
||||
#if defined(sun) || defined(USL)
|
||||
#if defined(reallyoldsun) || defined(USL)
|
||||
#define SA_HANDLER_TYPE void (*)(void)
|
||||
#else
|
||||
#define SA_HANDLER_TYPE void (*)(int)
|
||||
@@ -231,7 +231,7 @@ DtMailServer::ptrans_retrieve_readandappend(
|
||||
// Determine if we are done with this message.
|
||||
if (proto_is_delimited())
|
||||
{
|
||||
char *s = strrchr((const char *) _msgbuf, (int) '.');
|
||||
char *s = const_cast<char *> (strrchr((const char *) _msgbuf, (int) '.'));
|
||||
|
||||
if (s &&
|
||||
(s == _msgbuf || *(s-1) == '\n') &&
|
||||
|
||||
@@ -783,7 +783,7 @@ DtMail::Session::getRelativePath(DtMailEnv & error, const char * path)
|
||||
free(old_exp);
|
||||
|
||||
// Check to see if the path starts with the folder path.
|
||||
char * matched_path = strstr(path, exp_name);
|
||||
char * matched_path = const_cast<char *>(strstr(path, exp_name));
|
||||
if (matched_path == path) {
|
||||
// Yes it does, make it a relative path to the folder dir.
|
||||
int folder_path_length = strlen(exp_name);
|
||||
|
||||
Reference in New Issue
Block a user