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:
@ -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>
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -25,6 +25,7 @@
|
||||
*/
|
||||
|
||||
#include "diskimagegui.h"
|
||||
#include <proto/utility.h>
|
||||
#include <proto/dos.h>
|
||||
#include <proto/muimaster.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user