d/remote: Tidy and comment

This commit is contained in:
Jakob Bornecrantz 2022-05-28 15:14:58 +01:00
parent 7990ca9208
commit 9932e75db6
2 changed files with 6 additions and 5 deletions

View file

@ -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;

View file

@ -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;