Warning fixes

This commit is contained in:
Alexander S. Aganichev
2001-04-01 09:46:21 +00:00
parent c57e3b2863
commit f79327b384
9 changed files with 129 additions and 120 deletions

View File

@@ -277,7 +277,7 @@ void CfgScreensize() {
}
else if(CFG->screensize == 0) {
if(strnieql(val, "Mode", 4)) {
sscanf(val+4, " %x", &CFG->screensize);
sscanf(val+4, " %x", (uint *)&CFG->screensize);
CFG->screensize <<= 8;
}
}

View File

@@ -204,7 +204,7 @@ int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origa
}
if(strieql(tplfile, "built-in") or not fexist(tplfile) or CFG->tpl.empty()) {
tmptpl = YES; // Create a temporary template
mktemp(strcpy(tplfile, AddPath(CFG->templatepath, "GDXXXXXX")));
mktemp(strcpy(tplfile, AddPath(CFG->goldpath, "GDXXXXXX")));
fp = fsopen(tplfile, "wt", CFG->sharemode);
if(fp) {
fputs("@header= @oecho (@caddr) @align{79}{=}\n", fp);