update_inventory arg change

Commit dd49431296 changed the window port
interface to add an argument to update_inventory, but neglected to fix
the win/shim files.
This commit is contained in:
nhmall
2022-01-08 10:04:40 -05:00
parent 6a1a068a73
commit c5901b68c4

View File

@@ -178,13 +178,13 @@ VDECLCB(shim_status_update,
#ifdef __EMSCRIPTEN__ #ifdef __EMSCRIPTEN__
/* XXX: calling display_inventory() from shim_update_inventory() causes reentrancy that breaks emscripten Asyncify */ /* 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() */ /* 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) { if(iflags.perm_invent) {
display_inventory(NULL, FALSE); display_inventory(NULL, FALSE);
} }
} }
#else /* !__EMSCRIPTEN__ */ #else /* !__EMSCRIPTEN__ */
VDECLCB(shim_update_inventory,(void), "v") VDECLCB(shim_update_inventory,(int a1 UNUSED), "v")
#endif #endif
/* Interface definition used in windows.c */ /* Interface definition used in windows.c */