]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix Linux kernel coding style warning
authorDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Sat, 17 Jul 2021 05:37:22 +0000 (07:37 +0200)
committerDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Sat, 17 Jul 2021 06:56:35 +0000 (08:56 +0200)
const array should probably be static const

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
gpst.c

diff --git a/gpst.c b/gpst.c
index a8d4c2feec0ad997b4eff40f949428e890d956bf..bc61f4b157dc2c2ed10b74c18151a4eb78decd4e 100644 (file)
--- a/gpst.c
+++ b/gpst.c
@@ -687,7 +687,7 @@ static int gpst_connect(struct openconnect_info *vpninfo)
 {
        int ret;
        struct oc_text_buf *reqbuf;
-       const char start_tunnel[12] = "START_TUNNEL"; /* NOT zero-terminated */
+       static const char start_tunnel[12] = "START_TUNNEL"; /* NOT zero-terminated */
        char buf[256];
 
        /* We do NOT actually start the HTTPS tunnel if ESP is enabled and we received