From 41f6d32cfdbc10d5b4022513c6965498b8469ddf Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 13 Dec 2002 00:30:40 +0000 Subject: [PATCH] Fix parameters to cbm_load and cbm_save git-svn-id: svn://svn.cc65.org/cc65/trunk@1757 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/cbm.h | 5 ++--- libsrc/cbm/cbm_load.c | 5 ++--- libsrc/cbm/cbm_save.c | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/include/cbm.h b/include/cbm.h index 12753deb1..1f7bfa202 100644 --- a/include/cbm.h +++ b/include/cbm.h @@ -181,8 +181,7 @@ void __fastcall__ cbm_k_clrch (void); -unsigned int cbm_load (const char* name, unsigned char device, - const char* data); +unsigned int cbm_load (const char* name, unsigned char device, void* data); /* Loads file "name" from given device to given address or to the load * address of the file if "data" is the null pointer (like load"name",8,1 * in BASIC). @@ -191,7 +190,7 @@ unsigned int cbm_load (const char* name, unsigned char device, */ unsigned char cbm_save (const char* name, unsigned char device, - unsigned char* data, unsigned int size); + const void* data, unsigned int size); /* Saves "size" bytes starting at "data" to a file. * Returns 0 if saving was successful, otherwise an errorcode (see table * below). diff --git a/libsrc/cbm/cbm_load.c b/libsrc/cbm/cbm_load.c index d136f139f..297910615 100644 --- a/libsrc/cbm/cbm_load.c +++ b/libsrc/cbm/cbm_load.c @@ -2,7 +2,7 @@ * Marc 'BlackJack' Rintsch, 06.03.2001 * * unsigned int cbm_load(const char* name, - * unsigned char device, + * unsigned char device, * const unsigned char* data); */ @@ -11,8 +11,7 @@ /* loads file "name" from given device to given address or to the load address * of the file if "data" is 0 */ -unsigned int cbm_load(const char* name, unsigned char device, - const char* data) +unsigned int cbm_load(const char* name, unsigned char device, void* data) { /* LFN is set to 0 but it's not needed for loading. * (BASIC V2 sets it to the value of the SA for LOAD) */ diff --git a/libsrc/cbm/cbm_save.c b/libsrc/cbm/cbm_save.c index 5578dbdbd..8d74fc809 100644 --- a/libsrc/cbm/cbm_save.c +++ b/libsrc/cbm/cbm_save.c @@ -13,7 +13,7 @@ /* saves a memory area from start to end-1 to a file. */ unsigned char cbm_save(const char* name, unsigned char device, - unsigned char* data, unsigned int size) + const void* data, unsigned int size) { cbm_k_setlfs(0, device, 0); cbm_k_setnam(name); -- 2.39.5