From 6b2ad6d371c2e8bc3d0d959c5ef7f8894e6e3ec4 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 13 Mar 2020 08:07:21 -0400 Subject: [PATCH] TT#76368 remove some graphite functions from global namespace Change-Id: Ic24778e9d04e015012e9d7cc873203d0dfbacaa6 (cherry picked from commit 10ab85b3e59c6ed7d47e7c99f62491bc236cb03f) --- daemon/graphite.c | 6 +++--- include/graphite.h | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/daemon/graphite.c b/daemon/graphite.c index 4f0b6778d..402a7aa06 100644 --- a/daemon/graphite.c +++ b/daemon/graphite.c @@ -71,7 +71,7 @@ static struct request_time timeval_clear_request_time(struct request_time *reque return ret; } -int connect_to_graphite_server(const endpoint_t *graphite_ep) { +static int connect_to_graphite_server(const endpoint_t *graphite_ep) { int rc; if (!graphite_ep) { @@ -97,7 +97,7 @@ int connect_to_graphite_server(const endpoint_t *graphite_ep) { return 0; } -int send_graphite_data(struct totalstats *sent_data) { +static int send_graphite_data(struct totalstats *sent_data) { if (graphite_sock.fd < 0) { ilog(LOG_ERROR,"Graphite socket is not connected."); @@ -253,7 +253,7 @@ static inline void copy_with_lock(struct totalstats *ts_dst, struct totalstats * mutex_unlock(ts_lock); } -void graphite_loop_run(endpoint_t *graphite_ep, int seconds) { +static void graphite_loop_run(endpoint_t *graphite_ep, int seconds) { int rc=0; struct pollfd wfds[1]; diff --git a/include/graphite.h b/include/graphite.h index 84a6647d9..e2eb712e3 100644 --- a/include/graphite.h +++ b/include/graphite.h @@ -18,9 +18,6 @@ enum connection_state { extern struct timeval rtpe_latest_graphite_interval_start; -int connect_to_graphite_server(const endpoint_t *ep); -int send_graphite_data(struct totalstats *sent_data); -void graphite_loop_run(endpoint_t *graphite_ep, int seconds); void set_prefix(char* prefix); void graphite_loop(void *d); void set_latest_graphite_interval_start(struct timeval *tv);