Skip to content

Commit

Permalink
fix compiler warnings from linux64
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfitzpatrick committed Jan 4, 2024
1 parent 0e72cfc commit d8226de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions unix/os/zfiond.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ ZARDND (
#endif

/* Determine maximum amount of data to be read. */
maxread = (np->flags & F_TEXT) ? *maxbytes/sizeof(XCHAR) : *maxbytes;
maxread = (np->flags & F_TEXT) ? (int)(*maxbytes/sizeof(XCHAR)) : (int)*maxbytes;

/* The following call to select shouldn't be necessary, but it
* appears that, due to the way we open a FIFO with O_NDELAY, read
Expand Down Expand Up @@ -836,8 +836,9 @@ nd_onsig (
/* If we get a SIGPIPE writing to a server the server has probably
* died. Make it look like there was an i/o error on the channel.
*/
if (sig == SIGPIPE && recursion++ == 0)
if (sig == SIGPIPE && recursion++ == 0) {
;
}

if (jmpset)
longjmp (jmpbuf, sig);
Expand Down

0 comments on commit d8226de

Please sign in to comment.