From 9932e75db626c06b87f706f7bb4d378be8fa39d8 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sat, 28 May 2022 15:14:58 +0100 Subject: [PATCH] d/remote: Tidy and comment --- src/xrt/drivers/remote/r_hub.c | 8 ++++---- src/xrt/drivers/remote/r_internal.h | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/xrt/drivers/remote/r_hub.c b/src/xrt/drivers/remote/r_hub.c index 0044402bf..1edb6c9fb 100644 --- a/src/xrt/drivers/remote/r_hub.c +++ b/src/xrt/drivers/remote/r_hub.c @@ -64,7 +64,7 @@ DEBUG_GET_ONCE_LOG_OPTION(remote_log, "REMOTE_LOG", U_LOGGING_INFO) * */ -int +static int setup_accept_fd(struct r_hub *r) { struct sockaddr_in server_address = {0}; @@ -133,7 +133,7 @@ wait_for_read_and_to_continue(struct r_hub *r, int socket) } } -int +static int do_accept(struct r_hub *r) { struct sockaddr_in addr = {0}; @@ -198,7 +198,7 @@ read_one(struct r_hub *r, struct r_remote_data *data) return 0; } -void * +static void * run_thread(void *ptr) { struct r_hub *r = (struct r_hub *)ptr; @@ -239,7 +239,7 @@ run_thread(void *ptr) return NULL; } -void +static void r_hub_destroy(struct xrt_system_devices *xsysd) { struct r_hub *r = (struct r_hub *)xsysd; diff --git a/src/xrt/drivers/remote/r_internal.h b/src/xrt/drivers/remote/r_internal.h index 031fc7090..a4b672bcd 100644 --- a/src/xrt/drivers/remote/r_internal.h +++ b/src/xrt/drivers/remote/r_internal.h @@ -19,6 +19,7 @@ #include "r_interface.h" + #ifdef __cplusplus extern "C" { #endif @@ -46,7 +47,7 @@ struct r_hub //! The latest data received. struct r_remote_data latest; - + //! Incoming connection socket. int accept_fd; uint16_t port;