From 4e595a3fdef97858c23fd1360483c91f5703d0f5 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 31 Dec 2021 21:43:33 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20video/vnc/vnc=5Fnegotiate.c:396:3:=20erro?= =?UTF-8?q?r:=20=E2=80=98ret=E2=80=99=20undeclared?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Xiang Xiao --- drivers/video/vnc/vnc_negotiate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/vnc/vnc_negotiate.c b/drivers/video/vnc/vnc_negotiate.c index 2dde71893d..59df811ebf 100644 --- a/drivers/video/vnc/vnc_negotiate.c +++ b/drivers/video/vnc/vnc_negotiate.c @@ -104,10 +104,10 @@ int vnc_negotiate(FAR struct vnc_session_s *session) ssize_t nsent; ssize_t nrecvd; size_t len; + int ret; #ifdef CONFIG_NET_SOCKOPTS struct timeval tv; - int ret; /* Set a receive timeout so that we don't hang if the client does not * respond according to RFB 3.3 protocol.