From c5901b68c449abf431919b3c1eed8c8a737e121d Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 8 Jan 2022 10:04:40 -0500 Subject: [PATCH] update_inventory arg change Commit dd4943129601a2482531c782852f9a744c7362e6 changed the window port interface to add an argument to update_inventory, but neglected to fix the win/shim files. --- win/shim/winshim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/shim/winshim.c b/win/shim/winshim.c index c26ffeb38..4f9fccf42 100644 --- a/win/shim/winshim.c +++ b/win/shim/winshim.c @@ -178,13 +178,13 @@ VDECLCB(shim_status_update, #ifdef __EMSCRIPTEN__ /* XXX: calling display_inventory() from shim_update_inventory() causes reentrancy that breaks emscripten Asyncify */ /* this should be fine since according to windows.doc, the only purpose of shim_update_inventory() is to call display_inventory() */ -void shim_update_inventory() { +void shim_update_inventory(int a1 UNUSED) { if(iflags.perm_invent) { display_inventory(NULL, FALSE); } } #else /* !__EMSCRIPTEN__ */ -VDECLCB(shim_update_inventory,(void), "v") +VDECLCB(shim_update_inventory,(int a1 UNUSED), "v") #endif /* Interface definition used in windows.c */