From da194f15f0a9862ea342c172953b671e6b58bf63 Mon Sep 17 00:00:00 2001 From: yrutschle Date: Mon, 2 May 2022 23:01:28 +0200 Subject: [PATCH] make local functions static --- processes.c | 4 ++-- processes.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/processes.c b/processes.c index 8886e14..65800b1 100644 --- a/processes.c +++ b/processes.c @@ -26,13 +26,13 @@ #include "log.h" /* Removes cnx from probing list */ -void remove_probing_cnx(struct loop_info* fd_info, struct connection* cnx) +static void remove_probing_cnx(struct loop_info* fd_info, struct connection* cnx) { gap_remove_ptr(fd_info->probing_list, cnx, fd_info->num_probing); fd_info->num_probing--; } -void add_probing_cnx(struct loop_info* fd_info, struct connection* cnx) +static void add_probing_cnx(struct loop_info* fd_info, struct connection* cnx) { gap_set(fd_info->probing_list, fd_info->num_probing, cnx); fd_info->num_probing++; diff --git a/processes.h b/processes.h index c2c89d5..4abc91e 100644 --- a/processes.h +++ b/processes.h @@ -28,8 +28,6 @@ void cnx_write_process(struct loop_info* fd_info, int fd); int cnx_accept_process(struct loop_info* fd_info, struct listen_endpoint* listen_socket); void probing_read_process(struct connection* cnx, struct loop_info* fd_info); -void remove_probing_cnx(struct loop_info* fd_info, struct connection* cnx); -void add_probing_cnx(struct loop_info* fd_info, struct connection* cnx); int tidy_connection(struct connection *cnx, struct loop_info* fd_info);