Skip to content

Commit

Permalink
thunks: add missing const for api struct
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Jan 28, 2024
1 parent 67847dc commit c888559
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fdpp/thunks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "thunks_priv.h"
#include "thunks.h"

static struct fdpp_api *fdpp;
static const struct fdpp_api *fdpp;

struct asm_dsc_s {
UWORD off;
Expand Down Expand Up @@ -224,7 +224,7 @@ void do_abort(const char *file, int line)
fdpp->abort(file, line);
}

int FdppInit(struct fdpp_api *api, int ver, int *req_ver)
int FdppInit(const struct fdpp_api *api, int ver, int *req_ver)
{
*req_ver = FDPP_API_VER;
if (ver != FDPP_API_VER)
Expand Down
2 changes: 1 addition & 1 deletion include/fdpp/thunks.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct fdpp_api {
void (*prot_mem)(fdpp_far_t p, uint16_t size, int type);
int (*is_dos_space)(const void *ptr);
};
int FdppInit(struct fdpp_api *api, int ver, int *req_ver);
int FdppInit(const struct fdpp_api *api, int ver, int *req_ver);
void FdppLoaderHook(uint16_t seg, int (*getsymoff)(void *, const char *),
void *arg);
const char *FdppVersionString(void);
Expand Down

0 comments on commit c888559

Please sign in to comment.