From 7b7fd77134739110c99091d1254dd62ca72c8376 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 8 Feb 2018 09:08:55 +0100 Subject: [PATCH] Add missing static Some functions in scrcpy.c are not used outside the file, so declare them static. --- app/src/scrcpy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c index 311273fa..1d51c4af 100644 --- a/app/src/scrcpy.c +++ b/app/src/scrcpy.c @@ -65,7 +65,7 @@ static TCPsocket listen_on_port(Uint16 port) { } // name must be at least DEVICE_NAME_FIELD_LENGTH bytes -SDL_bool read_initial_device_info(TCPsocket socket, char *device_name, struct size *size) { +static SDL_bool read_initial_device_info(TCPsocket socket, char *device_name, struct size *size) { unsigned char buf[DEVICE_NAME_FIELD_LENGTH + 4]; if (SDLNet_TCP_Recv(socket, buf, sizeof(buf)) <= 0) { return SDL_FALSE; @@ -472,7 +472,7 @@ static void handle_mouse_wheel(const SDL_MouseWheelEvent *event, struct position } } -void event_loop(void) { +static void event_loop(void) { SDL_Event event; while (SDL_WaitEvent(&event)) { switch (event.type) {