From b40f5d67aad5bf60f520f7998e5800773c192e02 Mon Sep 17 00:00:00 2001 From: Ole Streicher Date: Mon, 15 Apr 2024 09:52:49 +0200 Subject: [PATCH] Use explicit pointer cast for zopnnd call in zfiobf.c The first argument in ZOPNND() should really be declared as a `char *`. However it is a SPP called function and therefore limited to the SPP data types; so the first argument is declared as `PKG_CHAR *` (which is a `short int`). Therefore we need to cast it when called from C. --- unix/os/zfiobf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/os/zfiobf.c b/unix/os/zfiobf.c index 5aa00c466..9c9fff022 100644 --- a/unix/os/zfiobf.c +++ b/unix/os/zfiobf.c @@ -767,7 +767,7 @@ vm_connect (void) "vmclient (%s): open server connection `%s' -> ", vm_client, osfn); - ZOPNND (osfn, &acmode, &fd); + ZOPNND ((PKCHAR *)osfn, &acmode, &fd); if (fd == XERR) { if (vm_debug) fprintf (stderr, "failed\n");