Uses O_NONBLOCK instead of O_NDELAY

FossilOrigin-Name: 45c5fb207834cf1c55917bfed3d403a537e92bc25f28dc971b04ca5393515c8d
bsdmakefiles
7u83@mail.ru 5 years ago
parent d603e05c6b
commit 8c9d3f8129
  1. 2
      src/cw/cw_rand.c

@ -38,7 +38,7 @@ int cw_rand_r(uint8_t * dst, int len)
int rf;
int l;
rf = open(cw_rand_dev, O_RDONLY | O_NDELAY);
rf = open(cw_rand_dev, O_RDONLY | O_NONBLOCK);
if (rf < 0) {
cw_log(LOG_ERR, "Can't open %s: %s", cw_rand_dev, strerror(errno));

Loading…
Cancel
Save