1
0
mirror of https://github.com/deadw00d/AROS.git synced 2025-12-06 21:40:57 +00:00

include prot/utility.h as necessary, and cast VSNPrintf args to RAWARG

This commit is contained in:
Kalamatee
2020-01-10 17:34:47 +00:00
committed by deadwood
parent a596cfc01f
commit 41bb646681
4 changed files with 4 additions and 2 deletions

View File

@ -30,6 +30,7 @@
#include <workbench/startup.h>
#include <devices/diskimage.h>
#include <proto/exec.h>
#include <proto/utility.h>
#include <proto/dos.h>
#include <proto/icon.h>
#include <proto/diskimage.h>

View File

@ -637,7 +637,7 @@ void SetDiskImageErrorA (APTR Self, struct DiskImageUnit *unit, LONG error,
if (unit->ErrorString && unit->ErrorStringLength) {
if (error_string != NO_ERROR_STRING) {
VSNPrintf(unit->ErrorString, unit->ErrorStringLength,
GetString(&libBase->LocaleInfo, error_string), error_args);
GetString(&libBase->LocaleInfo, error_string), (RAWARG)error_args);
} else if (error != NO_ERROR) {
struct Library *DOSBase = libBase->DOSBase;
Fault(error, NULL, unit->ErrorString, unit->ErrorStringLength);

View File

@ -54,7 +54,7 @@ SNPrintfStream *SNPrintfPutCh(SNPrintfStream * s, UBYTE c)
VARARGS68K void SNPrintf (STRPTR buf, LONG len, CONST_STRPTR fmt, ...) {
VA_LIST args;
VA_START(args, fmt);
VSNPrintf(buf, len, fmt, args);
VSNPrintf(buf, len, fmt, (RAWARG)args);
VA_END(args);
}

View File

@ -25,6 +25,7 @@
*/
#include "diskimagegui.h"
#include <proto/utility.h>
#include <proto/dos.h>
#include <proto/muimaster.h>