From 371eed1f93c353e0bf2159bcffd77cf6d8bd9716 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 10 Sep 2018 21:05:23 -0700 Subject: [PATCH] GUACAMOLE-623: Add missin includes. Remove unnecessary includes. --- src/protocols/kubernetes/client.c | 9 ++++----- src/protocols/kubernetes/client.h | 6 +----- src/protocols/kubernetes/clipboard.c | 2 -- src/protocols/kubernetes/clipboard.h | 2 -- src/protocols/kubernetes/input.c | 5 +---- src/protocols/kubernetes/input.h | 2 -- src/protocols/kubernetes/kubernetes.c | 10 ++-------- src/protocols/kubernetes/kubernetes.h | 4 +++- src/protocols/kubernetes/pipe.c | 5 +++-- src/protocols/kubernetes/pipe.h | 2 -- src/protocols/kubernetes/settings.c | 5 ----- src/protocols/kubernetes/settings.h | 3 --- src/protocols/kubernetes/url.c | 2 +- src/protocols/kubernetes/url.h | 2 -- src/protocols/kubernetes/user.c | 6 +++--- src/protocols/kubernetes/user.h | 2 -- 16 files changed, 18 insertions(+), 49 deletions(-) diff --git a/src/protocols/kubernetes/client.c b/src/protocols/kubernetes/client.c index 450e1e87..58f4728a 100644 --- a/src/protocols/kubernetes/client.c +++ b/src/protocols/kubernetes/client.c @@ -17,22 +17,21 @@ * under the License. */ -#include "config.h" #include "client.h" -#include "common/recording.h" +#include "common/clipboard.h" #include "kubernetes.h" #include "settings.h" -#include "terminal/terminal.h" #include "user.h" +#include +#include + #include #include #include #include #include -#include - /** * Static reference to the guac_client associated with the active Kubernetes * connection. As guacd guarantees that each main client connection is diff --git a/src/protocols/kubernetes/client.h b/src/protocols/kubernetes/client.h index 2e96d109..0b847da4 100644 --- a/src/protocols/kubernetes/client.h +++ b/src/protocols/kubernetes/client.h @@ -20,11 +20,7 @@ #ifndef GUAC_KUBERNETES_CLIENT_H #define GUAC_KUBERNETES_CLIENT_H -#include "config.h" -#include "terminal/terminal.h" - -#include -#include +#include /** * The maximum number of bytes to allow within the clipboard. diff --git a/src/protocols/kubernetes/clipboard.c b/src/protocols/kubernetes/clipboard.c index 87a34b04..f1682066 100644 --- a/src/protocols/kubernetes/clipboard.c +++ b/src/protocols/kubernetes/clipboard.c @@ -17,11 +17,9 @@ * under the License. */ -#include "config.h" #include "clipboard.h" #include "common/clipboard.h" #include "kubernetes.h" -#include "terminal/terminal.h" #include #include diff --git a/src/protocols/kubernetes/clipboard.h b/src/protocols/kubernetes/clipboard.h index 009219cf..87a393cf 100644 --- a/src/protocols/kubernetes/clipboard.h +++ b/src/protocols/kubernetes/clipboard.h @@ -20,8 +20,6 @@ #ifndef GUAC_KUBERNETES_CLIPBOARD_H #define GUAC_KUBERNETES_CLIPBOARD_H -#include "config.h" - #include /** diff --git a/src/protocols/kubernetes/input.c b/src/protocols/kubernetes/input.c index e73772e5..814578ef 100644 --- a/src/protocols/kubernetes/input.c +++ b/src/protocols/kubernetes/input.c @@ -17,18 +17,15 @@ * under the License. */ -#include "config.h" #include "common/recording.h" -#include "kubernetes.h" #include "input.h" +#include "kubernetes.h" #include "terminal/terminal.h" #include #include #include -#include -#include int guac_kubernetes_user_mouse_handler(guac_user* user, int x, int y, int mask) { diff --git a/src/protocols/kubernetes/input.h b/src/protocols/kubernetes/input.h index ac65835c..6f24cf20 100644 --- a/src/protocols/kubernetes/input.h +++ b/src/protocols/kubernetes/input.h @@ -20,8 +20,6 @@ #ifndef GUAC_KUBERNETES_INPUT_H #define GUAC_KUBERNETES_INPUT_H -#include "config.h" - #include /** diff --git a/src/protocols/kubernetes/kubernetes.c b/src/protocols/kubernetes/kubernetes.c index 9850c6d4..3644d6ec 100644 --- a/src/protocols/kubernetes/kubernetes.c +++ b/src/protocols/kubernetes/kubernetes.c @@ -18,8 +18,8 @@ */ #include "config.h" -#include "common/recording.h" #include "kubernetes.h" +#include "common/recording.h" #include "terminal/terminal.h" #include "url.h" @@ -27,16 +27,10 @@ #include #include -#include -#include -#include -#include #include +#include #include #include -#include -#include -#include /** * Handles data received from Kubernetes over WebSocket, decoding the channel diff --git a/src/protocols/kubernetes/kubernetes.h b/src/protocols/kubernetes/kubernetes.h index fedf77a2..8c9a25e7 100644 --- a/src/protocols/kubernetes/kubernetes.h +++ b/src/protocols/kubernetes/kubernetes.h @@ -20,13 +20,15 @@ #ifndef GUAC_KUBERNETES_H #define GUAC_KUBERNETES_H -#include "config.h" #include "common/clipboard.h" #include "common/recording.h" #include "settings.h" #include "terminal/terminal.h" +#include #include + +#include #include /** diff --git a/src/protocols/kubernetes/pipe.c b/src/protocols/kubernetes/pipe.c index 242105b1..8f18530a 100644 --- a/src/protocols/kubernetes/pipe.c +++ b/src/protocols/kubernetes/pipe.c @@ -17,12 +17,13 @@ * under the License. */ -#include "config.h" #include "kubernetes.h" -#include "pipe.h" #include "terminal/terminal.h" +#include "pipe.h" +#include #include +#include #include #include diff --git a/src/protocols/kubernetes/pipe.h b/src/protocols/kubernetes/pipe.h index 7acae3cb..47565bfd 100644 --- a/src/protocols/kubernetes/pipe.h +++ b/src/protocols/kubernetes/pipe.h @@ -21,8 +21,6 @@ #ifndef GUAC_KUBERNETES_PIPE_H #define GUAC_KUBERNETES_PIPE_H -#include "config.h" - #include /** diff --git a/src/protocols/kubernetes/settings.c b/src/protocols/kubernetes/settings.c index 4f9f3f24..122a8584 100644 --- a/src/protocols/kubernetes/settings.c +++ b/src/protocols/kubernetes/settings.c @@ -17,16 +17,11 @@ * under the License. */ -#include "config.h" - #include "settings.h" #include -#include #include -#include -#include /* Client plugin arguments */ const char* GUAC_KUBERNETES_CLIENT_ARGS[] = { diff --git a/src/protocols/kubernetes/settings.h b/src/protocols/kubernetes/settings.h index c2e479ea..a86d14a5 100644 --- a/src/protocols/kubernetes/settings.h +++ b/src/protocols/kubernetes/settings.h @@ -20,11 +20,8 @@ #ifndef GUAC_KUBERNETES_SETTINGS_H #define GUAC_KUBERNETES_SETTINGS_H -#include "config.h" - #include -#include #include /** diff --git a/src/protocols/kubernetes/url.c b/src/protocols/kubernetes/url.c index cfd6f745..434cc87e 100644 --- a/src/protocols/kubernetes/url.c +++ b/src/protocols/kubernetes/url.c @@ -17,10 +17,10 @@ * under the License. */ -#include "config.h" #include "url.h" #include +#include #include static int guac_kubernetes_is_url_safe(char c) { diff --git a/src/protocols/kubernetes/url.h b/src/protocols/kubernetes/url.h index 19084ee0..285baa21 100644 --- a/src/protocols/kubernetes/url.h +++ b/src/protocols/kubernetes/url.h @@ -20,8 +20,6 @@ #ifndef GUAC_KUBERNETES_URL_H #define GUAC_KUBERNETES_URL_H -#include "config.h" - /** * The maximum number of characters allowed in the full path for any Kubernetes * endpoint. diff --git a/src/protocols/kubernetes/user.c b/src/protocols/kubernetes/user.c index 62666cb5..f90260e7 100644 --- a/src/protocols/kubernetes/user.c +++ b/src/protocols/kubernetes/user.c @@ -17,9 +17,8 @@ * under the License. */ -#include "config.h" - #include "clipboard.h" +#include "common/cursor.h" #include "input.h" #include "kubernetes.h" #include "pipe.h" @@ -28,11 +27,12 @@ #include "user.h" #include +#include #include #include #include -#include +#include int guac_kubernetes_user_join_handler(guac_user* user, int argc, char** argv) { diff --git a/src/protocols/kubernetes/user.h b/src/protocols/kubernetes/user.h index d235b2b7..55d49fdf 100644 --- a/src/protocols/kubernetes/user.h +++ b/src/protocols/kubernetes/user.h @@ -20,8 +20,6 @@ #ifndef GUAC_KUBERNETES_USER_H #define GUAC_KUBERNETES_USER_H -#include "config.h" - #include /**