Spelling fixes

This commit is contained in:
chase
2018-05-26 11:50:47 -05:00
committed by Jon Trulson
parent 8d2fe2486c
commit 809c3d8bb6
146 changed files with 240 additions and 240 deletions

View File

@@ -1247,7 +1247,7 @@ Attachment::setContents()
size = strlen(from_hdr) + int(_myContentsSize) + 3;
buffer = new char[size];
// Look for the first occurance of a colon or a newline.
// Look for the first occurrence of a colon or a newline.
char *sptr;
for (sptr = (char*) _myContents;
*sptr && *sptr != '\n' && *sptr != ':';

View File

@@ -220,7 +220,7 @@ Notifier::addInterval(int interval_ms,
void
Notifier::removeInterval(IntervalId id)
{
// The Id is really the TimerEvent structure pointer. We dont have
// The Id is really the TimerEvent structure pointer. We don't have
// a key for these objects so we will have to enumerate the entire
// list of timer events until we find the appropriate key.
//

View File

@@ -1189,7 +1189,7 @@ void RoamApp::initialize(int *argcp, char **argv)
// Create a fontlist that contains the glyph and user fonts
strcpy(buf, _user_font);
#if 0
// Never refer to the "plain" tag so dont add it.
// Never refer to the "plain" tag so don't add it.
if (strchr(_user_font, '=') == NULL) {
// No tag. Add one
strcat(buf, "=plain, ");

View File

@@ -861,7 +861,7 @@ SendMsgDialog::loadHeaders(DtMail::Message * input,
int slot = lookupHeader(name);
if (slot < 0) {
// We dont have a place for this information. We may need
// We don't have a place for this information. We may need
// to create a new header.
//
if (load_all) {
@@ -3905,7 +3905,7 @@ SendMsgDialog::resetHeaders(void)
for (i=0, j=results.length(); i < j; i++) {
PropStringPair * psp = results[i];
int slot = lookupHeader(psp->label);
// dont allow removal of default headers.
// don't allow removal of default headers.
HeaderList * hl = _header_list[slot];
if (!reservedHeader(hl->label)) {
if (slot != -1)

View File

@@ -306,7 +306,7 @@ dtb_cvt_file_to_pixmap(
/*
* Sets both the sensitive and insensitve pixmaps
* Sets both the sensitive and insensitive pixmaps
*/
int
dtb_set_label_from_bitmap_data(
@@ -399,7 +399,7 @@ dtb_set_label_pixmaps(
}
/*
* Set the approriate resources.
* Set the appropriate resources.
*/
XtVaSetValues(widget, XmNlabelType, XmPIXMAP, NULL);
if (labelPixmap != 0)

View File

@@ -177,7 +177,7 @@ public:
//
// logError() and logFatalError():
//
// This will print out in a formated way all of the error information
// This will print out in a formatted way all of the error information
// that it can. it also sends the results to the system log device for
// bug tracking.
//

View File

@@ -714,7 +714,7 @@ DtMail::MailRc::outputLine(const char * verbatim,
struct cmd * com = (struct cmd *)lex(word);
if (com == NONE) {
// We dont know the command, so just copy the line.
// We don't know the command, so just copy the line.
//
fwrite(verbatim, 1, strlen(verbatim), outf);
return;
@@ -1299,7 +1299,7 @@ DtMail::MailRc::wgroup(const char * verbatim, char ** argv, FILE * outf)
char * cur = (char *)hm_test((struct hash **)glob.g_alias, argv[0]);
if (!cur || (!clearAliases && hm_ismarked((struct hash **)glob.g_alias,
argv[0]))) {
// Its been removed or written. Dont write it to the file.
// Its been removed or written. Don't write it to the file.
free(buf);
return;
}
@@ -1869,7 +1869,7 @@ DtMail::MailRc::wigfield(const char * verbatim, char ** list, FILE * outf)
}
// Create a new ignore line, leaving out the ignores that have
// been removed. Also, dont write any ignores that have been
// been removed. Also, don't write any ignores that have been
// previously written.
//
for (ap = list; *ap; ap++) {

View File

@@ -297,7 +297,7 @@ SafeWriteStrip(int fd, const void * buf, size_t bytes)
int i, j;
char *ptr = (char*)buf, *writebuf;
// bug 5856: dont write out control M
// bug 5856: don't write out control M
// make a finite size buffer for writing
writebuf = (char*) malloc(bytes < SWS_BUFFERSIZE ? bytes : SWS_BUFFERSIZE);

View File

@@ -331,7 +331,7 @@ MIMEBodyPart::getDtType(DtMailEnv & error)
// We must have an exact 1:1 mapping between the mime type and the
// CDE type to use this inverse mapping. If we have no hits then we
// dont have any thing to use. If we have several hits, then we have
// don't have any thing to use. If we have several hits, then we have
// no idea which type is the correct type.
//
if (NULL != types) {
@@ -649,7 +649,7 @@ MIMEBodyPart::loadBody(DtMailEnv & error)
char *
MIMEBodyPart::getDescription(DtMailEnv &)
{
// Dont have this return anything without checking
// Don't have this return anything without checking
// ramifications with getNameHeaderValue
// No need to clear error object here because we assume it has already

View File

@@ -463,13 +463,13 @@ RFCBodyPart::adjustBodyPartsLocation(char * start)
if (_body_env && _my_env == DTM_TRUE) {
// CMVC bug 2807
// start points at the body part seperator. Need to
// Skip seperator. Put in a sanity check until we know
// start points at the body part separator. Need to
// Skip separator. Put in a sanity check until we know
// this is the right fix
if (*start != '-' && *(start + 1) != '-') {
fprintf(
stderr,
"RFCBodyPart::adjustBodyPartLocation(%.20s): Not a seperator\n",
"RFCBodyPart::adjustBodyPartLocation(%.20s): Not a separator\n",
start);
} else {
while (*start != '\n')

View File

@@ -354,7 +354,7 @@ RFCEnvelope::setHeader(DtMailEnv & error,
error.clear();
// First we need to see if we have this header. We are
// only interested in the first occurance.
// only interested in the first occurrence.
//
ParsedHeader * hdr;
const char * real_name;
@@ -498,7 +498,7 @@ RFCEnvelope::adjustHeaderLocation(char * headerStart, int headerLength)
else {
// We must adjust the offset of every header in the parsed header
// structure. For those headers values that have been malloc()ed
// (e.g. NAME_MASK or VALUE_MASK are set), dont have to do anything
// (e.g. NAME_MASK or VALUE_MASK are set), don't have to do anything
// as they are deallocated only when the header is destroyed.
//
for (int hdr = 0; hdr < _parsed_headers.length(); hdr++) {

View File

@@ -268,7 +268,7 @@ RFCMIME::getEncodingType(const char * body,
}
// Deal with buffers that dont end with a new line.
// Deal with buffers that don't end with a new line.
//
if ((cur - last_nl) > 76) {
encode = DTM_TRUE;
@@ -378,7 +378,7 @@ RFCMIME::getEncodingType(const char * body,
}
}
// Deal with buffers that dont end with a new line.
// Deal with buffers that don't end with a new line.
//
if (strict_mime && ((cur - last_nl) > 76)) {
qprint_growth += 2;
@@ -1303,7 +1303,7 @@ RFCMIME::formatBodies(DtMailEnv & error,
const void *tmp_ptr;
error.clear();
bp->getContents(error, &tmp_ptr, &bp_len, NULL, &name, NULL, NULL);
// We dont want to change the contents of the msg.
// We don't want to change the contents of the msg.
if (bp_len > 0) {
bp_contents = (char*)malloc((unsigned int)bp_len);
memcpy(bp_contents, (char*)tmp_ptr, (size_t)bp_len);
@@ -1663,7 +1663,7 @@ RFCMIME::getHdrEncodingType(const char * body,
}
// Deal with buffers that dont end with a new line.
// Deal with buffers that don't end with a new line.
//
if ((cur - last_nl) > 76) {
encode = DTM_TRUE;

View File

@@ -1481,7 +1481,7 @@ RFCMailBox::openRealFile(DtMailEnv & error, int open_mode, mode_t create_mode)
break;
default:
//
// locality otherwise -- assume remote dont lock
// locality otherwise -- assume remote don't lock
//
break;
}
@@ -2237,7 +2237,7 @@ RFCMailBox::parseFile(DtMailEnv & error, int map_slot)
unsigned long pagelimit = _mappings[map_slot]->map_size;
#if !defined(__linux__) && !defined(sun)
// no madvise; dont use optimization
// no madvise; don't use optimization
madvise(
(char *)_mappings[map_slot]->map_region,
(size_t) pagelimit, MADV_SEQUENTIAL);
@@ -2328,7 +2328,7 @@ RFCMailBox::parseFile(DtMailEnv & error, int map_slot)
// tell the kernel to pull in the minimum number of extra pages.
//
#if !defined(__linux__) && !defined(sun)
// no madvise; dont use optimization
// no madvise; don't use optimization
madvise(
(char *)_mappings[map_slot]->map_region,
(size_t) pagelimit, MADV_RANDOM);
@@ -2730,7 +2730,7 @@ RFCMailBox::NewMailEvent(
// that new mail has arrived.
//
// 3. The file size is either smaller, or it is larger and the first
// few bytes dont match #2. This is the worse possible case. This
// few bytes don't match #2. This is the worse possible case. This
// means that somebody has modified the object from beneath us.
// We will turn on our "lost state" mode and refuse to do any
// further processing. This thread exits immediately.
@@ -4048,7 +4048,7 @@ RFCMailBox::lockFile(DtMailEnv & error)
// lockNewMailboxFile -- before renaming a new mailbox file over an old
// mailbox file, we need to establish a lock on the new mailbox file is
// a lock was established on the old mailbox file. Since the .lock protocol
// works on a file name basis we dont have to worry here, but if this
// works on a file name basis we don't have to worry here, but if this
// system uses lockf() to lock the files we need to establish that lock
// on the new file first before renaming it over the old mailbox file.
//

View File

@@ -784,7 +784,7 @@ RFCTransport::launchSendmail(DtMailEnv & error,
long maxOpenFiles = sysconf(_SC_OPEN_MAX);
if (maxOpenFiles < 32) // less than 32 descriptors?
maxOpenFiles = 1024; // dont believe it--assume lots
maxOpenFiles = 1024; // don't believe it--assume lots
for (int sig = 1; sig < NSIG; sig++)
(void) signal(sig, SIG_DFL); // REset all signal handlers
@@ -1035,7 +1035,7 @@ RFCTransport::startSubprocess(DtMailEnv &error, char * cmd,
// less than 32 descriptors?
if (maxOpenFiles < 32)
{
// dont believe it--assume lots
// don't believe it--assume lots
maxOpenFiles = 1024;
}

View File

@@ -231,7 +231,7 @@ SunV3::formatBodies(DtMailEnv & error,
if (bp->flagIsSet(error, DtMailBodyPartDeletePending))
continue;
// First, put out the message seperator. It is a very
// First, put out the message separator. It is a very
// weak line of 10 dashes.
//
buf.appendData("----------", 10);
@@ -437,7 +437,7 @@ SunV3::formatHeaders(DtMailEnv & error,
// const unsigned long inputLen -- number of bytes in encoded source text
// Outputs:
// **outputBp -- will contain a -> a newly allocated buffer containing
// the decoded message - dont forget to deallocate when done
// the decoded message - don't forget to deallocate when done
// off -- contains the number of bytes in the decoded message at **buf
// Description
// This function will decode the specified source message according to the
@@ -727,7 +727,7 @@ SunV3::uncompress(char ** outputBp, int & outputLen, const char * inputBp, const
long maxOpenFiles = sysconf(_SC_OPEN_MAX);
if (maxOpenFiles < 32) // less than 32 descriptors?
maxOpenFiles = 1024; // dont believe it--assume lots
maxOpenFiles = 1024; // don't believe it--assume lots
for (int sig = 1; sig < NSIG; sig++)
(void) signal(sig, SIG_DFL); // reset all signal handlers
if (SafeDup2 (inputPipe[pipeReader], STDIN_FILENO) == -1) // input pipe reader is stdin
@@ -751,9 +751,9 @@ SunV3::uncompress(char ** outputBp, int & outputLen, const char * inputBp, const
(void) SafeClose(outputPipe[pipeWriter]); // output pipe writer n/a
#if defined(O_NONBLOCK)
fcntl(inputPipe[pipeWriter], F_SETFL, O_NONBLOCK); // we dont want to block writing to child
fcntl(inputPipe[pipeWriter], F_SETFL, O_NONBLOCK); // we don't want to block writing to child
#elif defined(FNBIO)
(void) fcntl(inputPipe[pipeWriter], F_SETFL, FNBIO); // we dont want to block writing to child
(void) fcntl(inputPipe[pipeWriter], F_SETFL, FNBIO); // we don't want to block writing to child
#endif
// Ok, uncompress is out there spinning its wheels waiting for us