changeset 843:3a9ec98808c3 ecc

Fix shadowed "ret" variable
author Matt Johnston <matt@ucc.asn.au>
date Mon, 21 Oct 2013 22:50:52 +0800
parents 4365e12c68e6
children 68facbc41273
files random.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/random.c	Mon Oct 21 22:46:12 2013 +0800
+++ b/random.c	Mon Oct 21 22:50:52 2013 +0800
@@ -81,14 +81,14 @@
 		unsigned char readbuf[4096];
 		if (!already_blocked)
 		{
-			int ret;
+			int res;
 			struct timeval timeout = { .tv_sec = 2, .tv_usec = 0};
 			fd_set read_fds;
 
 			FD_ZERO(&read_fds);
 			FD_SET(readfd, &read_fds);
-			ret = select(readfd + 1, &read_fds, NULL, NULL, &timeout);
-			if (ret == 0)
+			res = select(readfd + 1, &read_fds, NULL, NULL, &timeout);
+			if (res == 0)
 			{
 				dropbear_log(LOG_WARNING, "Warning: Reading the randomness source '%s' seems to have blocked.\nYou may need to find a better entropy source.", filename);
 				already_blocked = 1;