Uses O_NONBLOCK instead of O_NDELAY

FossilOrigin-Name: 45c5fb207834cf1c55917bfed3d403a537e92bc25f28dc971b04ca5393515c8d
This commit is contained in:
7u83@mail.ru 2018-03-17 11:52:34 +00:00
parent d603e05c6b
commit 8c9d3f8129
1 changed files with 1 additions and 1 deletions

View File

@ -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));