From: Kevin Locke Date: Sat, 30 Nov 2024 21:28:31 +0000 (-0700) Subject: strongswan: swanctl: make overtime local X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e7aa0272db48af438a6338e52c77cd506a5d93ac;p=openwrt-packages.git strongswan: swanctl: make overtime local $overtime has been used since swanctl.init was added in f9d91f1f47. However, there's no need for it to be global. Make it local like the other config variables to avoid polluting the global namespace and make the code easier to reason about. Fixes: f9d91f1f470a ("strongswan: migrate to swanctl configs") Signed-off-by: Kevin Locke --- diff --git a/net/strongswan/files/swanctl.init b/net/strongswan/files/swanctl.init index 637e146f6..fb55a0b23 100644 --- a/net/strongswan/files/swanctl.init +++ b/net/strongswan/files/swanctl.init @@ -459,6 +459,7 @@ config_remote() { local local_key local ca_cert local rekeytime + local overtime local send_cert local remote_ca_certs local pools