Skip to content

Commit

Permalink
Merge pull request #396 from olebole/fix_zopnnd_call
Browse files Browse the repository at this point in the history
Fix build on Fedora-40: Use explicit pointer casts in some more places
  • Loading branch information
olebole committed Apr 23, 2024
2 parents 0f82aa4 + a7180a8 commit d85a9ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sys/libc/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ system (
XINT status;

nullstr[0] = EOS;
ZOSCMD (cmd, nullstr, nullstr, nullstr, &status);
ZOSCMD ((PKCHAR *)cmd, nullstr, nullstr, nullstr, &status);

return ((int) status);
}
2 changes: 1 addition & 1 deletion unix/os/zfiobf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion unix/os/zfioks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ ks_sysname (char *filename, char *pathname)
XCHAR irafdir[SZ_PATHNAME+1];
XINT x_maxch=SZ_PATHNAME, x_nchars;

ZGTENV ((const int*)"iraf", irafdir, &x_maxch, &x_nchars);
ZGTENV ((PKCHAR *)"iraf", irafdir, &x_maxch, &x_nchars);
if (x_nchars <= 0)
return (NULL);

Expand Down

0 comments on commit d85a9ed

Please sign in to comment.