comparison dbrandom.c @ 1610:96e4c9b2cc00 coverity

merge coverity
author Matt Johnston <matt@ucc.asn.au>
date Wed, 21 Mar 2018 00:52:02 +0800
parents 60fceff95858
children f966834f0f9c
comparison
equal deleted inserted replaced
1580:7f2be495dff6 1610:96e4c9b2cc00
86 fd_set read_fds; 86 fd_set read_fds;
87 87
88 timeout.tv_sec = 2; 88 timeout.tv_sec = 2;
89 timeout.tv_usec = 0; 89 timeout.tv_usec = 0;
90 90
91 FD_ZERO(&read_fds); 91 DROPBEAR_FD_ZERO(&read_fds);
92 FD_SET(readfd, &read_fds); 92 FD_SET(readfd, &read_fds);
93 res = select(readfd + 1, &read_fds, NULL, NULL, &timeout); 93 res = select(readfd + 1, &read_fds, NULL, NULL, &timeout);
94 if (res == 0) 94 if (res == 0)
95 { 95 {
96 dropbear_log(LOG_WARNING, "Warning: Reading the randomness source '%s' seems to have blocked.\nYou may need to find a better entropy source.", filename); 96 dropbear_log(LOG_WARNING, "Warning: Reading the randomness source '%s' seems to have blocked.\nYou may need to find a better entropy source.", filename);