You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2020/06/03 22:50:44 UTC

[trafficserver] branch master updated: LGTM: fix hiding a global variable with the same name

This is an automated email from the ASF dual-hosted git repository.

masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new ba8d58b  LGTM: fix hiding a global variable with the same name
ba8d58b is described below

commit ba8d58b06ff9981c4ca0f7914cbfc67d164c22f2
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Wed Jun 3 08:53:24 2020 +0900

    LGTM: fix hiding a global variable with the same name
---
 iocore/net/BIO_fastopen.cc | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/iocore/net/BIO_fastopen.cc b/iocore/net/BIO_fastopen.cc
index 78af8fa..bacc214 100644
--- a/iocore/net/BIO_fastopen.cc
+++ b/iocore/net/BIO_fastopen.cc
@@ -195,13 +195,13 @@ static const BIO_METHOD fastopen_methods[] = {{
 }};
 #else
 static const BIO_METHOD *fastopen_methods = [] {
-  BIO_METHOD *fastopen_methods = BIO_meth_new(BIO_TYPE_SOCKET, "fastopen");
-  BIO_meth_set_write(fastopen_methods, fastopen_bwrite);
-  BIO_meth_set_read(fastopen_methods, fastopen_bread);
-  BIO_meth_set_ctrl(fastopen_methods, fastopen_ctrl);
-  BIO_meth_set_create(fastopen_methods, fastopen_create);
-  BIO_meth_set_destroy(fastopen_methods, fastopen_destroy);
-  return fastopen_methods;
+  BIO_METHOD *methods = BIO_meth_new(BIO_TYPE_SOCKET, "fastopen");
+  BIO_meth_set_write(methods, fastopen_bwrite);
+  BIO_meth_set_read(methods, fastopen_bread);
+  BIO_meth_set_ctrl(methods, fastopen_ctrl);
+  BIO_meth_set_create(methods, fastopen_create);
+  BIO_meth_set_destroy(methods, fastopen_destroy);
+  return methods;
 }();
 #endif