Skip to content

Commit 96ece90

Browse files
committed
FIX: not using NZ macro
1 parent ad12a68 commit 96ece90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/posix/dev-serial.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static REBOOL Set_Serial_Settings(int ttyfd, REBREQ *req)
8181
printf("setting attributes: speed %d\n", speed);
8282
#endif
8383

84-
if (NZ(cfsetospeed (&attr, speed)) || NZ(cfsetispeed (&attr, speed)))
84+
if (cfsetospeed(&attr, speed)!=0 || cfsetispeed(&attr, speed)!=0)
8585
return FALSE;
8686

8787
// TTY has many attributes. Refer to "man tcgetattr" for descriptions.

0 commit comments

Comments
 (0)