From: Mark Wielaard Date: Thu, 30 Oct 2025 10:43:44 +0000 (+0100) Subject: debuginfod: Mark internal debuginfod-client.c functions static X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a85370eda127ac7a1c146e893872471eb157729a;p=thirdparty%2Felfutils.git debuginfod: Mark internal debuginfod-client.c functions static The init_server_urls, init_handle and perform_queries functions are only used internally by other debuginfod-client.c and shouldn't be exported. Make sure they aren't by marking them static. * debuginfod/debuginfod-client.c (init_server_urls): Mark static. (init_handle): Likewise. (perform_queries): Likewise. Reported-by: Matthias Klose Signed-off-by: Mark Wielaard --- diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c index f7d12561..c0ff5967 100644 --- a/debuginfod/debuginfod-client.c +++ b/debuginfod/debuginfod-client.c @@ -847,7 +847,7 @@ metadata_callback (char * buffer, size_t size, size_t numitems, void * userdata) * 'metadata', corresponding to the query type. Returns 0 on success * and -Posix error on failure. */ -int +static int init_server_urls(char* url_subdir, const char* type, char *server_urls, char ***server_url_list, ima_policy_t **url_ima_policies, int *num_urls, int vfd) @@ -956,7 +956,7 @@ init_server_urls(char* url_subdir, const char* type, * Specifically the data[i] within an array of struct handle_data's. * Returns 0 on success and -Posix error on failure. */ -int +static int init_handle(debuginfod_client *client, size_t (*w_callback)(char *buffer, size_t size, size_t nitems, void *userdata), size_t (*h_callback)(char *buffer, size_t size, size_t nitems, void *userdata), @@ -1030,7 +1030,7 @@ init_handle(debuginfod_client *client, * once found. If positive maxtime and maxsize dictate the maximum allowed wait times * and download sizes respectively. Returns 0 on success and -Posix error on failure. */ -int +static int perform_queries(CURLM *curlm, CURL **target_handle, struct handle_data *data, debuginfod_client *c, int num_urls, long maxtime, long maxsize, bool only_one, int vfd, int *committed_to) {