]> 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 08:35:52 +0000 (10:35 +0200)
committerDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Mon, 19 Jul 2021 04:17:31 +0000 (06:17 +0200)
switch default: should use break

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
array.c
cstp.c
oncp.c
ppp.c
pulse.c

diff --git a/array.c b/array.c
index e6f7bf7125b7ddfe6fa793566de013195335b7c1..cd3ce10bb7e79c1b751d0f2ab56d3688301dabe0 100644 (file)
--- a/array.c
+++ b/array.c
@@ -893,7 +893,7 @@ int array_mainloop(struct openconnect_info *vpninfo, int *timeout, int readable)
                                return work_done;
                        default:
                                /* This should never happen */
-                               ;
+                               break;
                        }
                }
 
diff --git a/cstp.c b/cstp.c
index f2bc22dacac1642dc60f23afb7a138ea0efe02d2..1b763d2c5b1766128970e6bb8386b25a71426dab 100644 (file)
--- a/cstp.c
+++ b/cstp.c
@@ -1059,7 +1059,7 @@ int cstp_mainloop(struct openconnect_info *vpninfo, int *timeout, int readable)
                                return work_done;
                        default:
                                /* This should never happen */
-                               ;
+                               break;
                        }
                }
 
diff --git a/oncp.c b/oncp.c
index 206134eb11b89b1716eb3de383828c52d03a500d..f892dd9d701df4aac3aaf13b6230530cf0bb0522 100644 (file)
--- a/oncp.c
+++ b/oncp.c
@@ -1069,7 +1069,7 @@ int oncp_mainloop(struct openconnect_info *vpninfo, int *timeout, int readable)
                                return work_done;
                        default:
                                /* This should never happen */
-                               ;
+                               break;
                        }
 #else
                        return work_done;
diff --git a/ppp.c b/ppp.c
index cfffe9232baf6dfb1d9935c1ecc4a3e0b112791f..e8a52f751934a39959d6070ca501d00f2eed96b0 100644 (file)
--- a/ppp.c
+++ b/ppp.c
@@ -1367,7 +1367,7 @@ static int ppp_mainloop(struct openconnect_info *vpninfo, int dtls,
                        default:
                                /* This can never happen because ka_stalled_action()
                                 * always returns one of the above. */
-                               ;
+                               break;
                        }
                }
 
diff --git a/pulse.c b/pulse.c
index 2c4671386b3ec79538491d843cf776b82d31f5e1..dc3528206e3d4e3abad0497fdf386ff46ff10b3b 100644 (file)
--- a/pulse.c
+++ b/pulse.c
@@ -2782,7 +2782,7 @@ int pulse_mainloop(struct openconnect_info *vpninfo, int *timeout, int readable)
                                return work_done;
                        default:
                                /* This should never happen */
-                               ;
+                               break;
                        }
 #else
                        return work_done;
@@ -2871,7 +2871,7 @@ int pulse_mainloop(struct openconnect_info *vpninfo, int *timeout, int readable)
 
                vpn_progress(vpninfo, PRG_DEBUG, _("Send CSTP Keepalive\n"));
 
-               vpninfo->current_ssl_pkt = (struct pkt *)&keepalive_pkt;
+               vpninfo->current/volatile/src/openconnect/pulse.c_ssl_pkt = (struct pkt *)&keepalive_pkt;
                goto handle_outgoing;
 
        case KA_NONE: