Fix types incompatibility

This commit is contained in:
Stas Degteff 2005-10-27 19:49:46 +00:00
parent a88fa576ca
commit 10613c469b
2 changed files with 4 additions and 4 deletions

View File

@ -329,7 +329,7 @@ void DoKludges(int mode, GMsg* msg, int kludges) {
strcpy(buf, msg->iorig);
strchg(buf, '@', '.');
}
sprintf(buf2, "<GED%08lX@%s>", getMsgId(), buf);
sprintf(buf2, "<GED%08lX@%s>", long(getMsgId()), buf);
throw_release(msg->messageid);
msg->messageid = throw_strdup(buf2);
CvtMessageIDtoMSGID(buf2, buf, AA->echoid(), "MSGID");
@ -337,7 +337,7 @@ void DoKludges(int mode, GMsg* msg, int kludges) {
}
else {
msg->orig.make_string(buf2, msg->odom);
sprintf(msg->msgids, "%s %08lx", buf2, getMsgId());
sprintf(msg->msgids, "%s %08lx", buf2, long(getMsgId()));
}
if(CFG->switches.get(usemsgid) and strcmp(AA->basetype(), "PCBOARD")) {
sprintf(buf, "\001MSGID: %s", msg->msgids);

View File

@ -326,7 +326,7 @@ void GMsgList::print_line(uint idx, uint pos, bool isbar) {
strsetsz(dbuf, 10);
else
*dbuf = NUL;
sprintf(nbuf, "%5lu", CFG->switches.get(disprealmsgno) ? ml->msgno : AA->Msgn.ToReln(ml->msgno));
sprintf(nbuf, "%5lu", long(CFG->switches.get(disprealmsgno) ? ml->msgno : AA->Msgn.ToReln(ml->msgno)));
sprintf(buf, "%-5.5s%s%-*.*s %-*.*s%s%-*.*s %s",
nbuf, ml->marks,
bysiz, bysiz, ml->by,
@ -892,7 +892,7 @@ void GThreadlist::print_line(uint idx, uint pos, bool isbar) {
marks[1] = MMRK_MARK;
}
sprintf(buf, "%6lu %*c", CFG->switches.get(disprealmsgno) ? t.msgno : AA->Msgn.ToReln(t.msgno), tdlen, ' ');
sprintf(buf, "%6lu %*c", long(CFG->switches.get(disprealmsgno) ? t.msgno : AA->Msgn.ToReln(t.msgno)), tdlen, ' ');
if(AA->Msglistdate() != MSGLISTDATE_NONE) {
char dbuf[11];