From 7e477db0fc319ecaecc61aec2ab67ea731ca19cb Mon Sep 17 00:00:00 2001 From: Andrey Ovchinnikov Date: Mon, 5 Feb 2024 15:02:22 +0300 Subject: [PATCH] make some functions from mdb_iamproxy.c static --- sources/mdb_iamproxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/mdb_iamproxy.c b/sources/mdb_iamproxy.c index acbb1b7b7..64696bd3a 100644 --- a/sources/mdb_iamproxy.c +++ b/sources/mdb_iamproxy.c @@ -37,7 +37,7 @@ #define MDB_IAMPROXY_DEFAULT_SOCKET_FILE \ "/var/run/iam-auth-proxy/iam-auth-proxy.sock" // PAM SOCKET FILE place -void put_header(char dst[], uint64_t src) +static void put_header(char dst[], uint64_t src) { for (int i = 0; i < MDB_IAMPROXY_DEFAULT_HEADER_SIZE; ++i) { dst[i] = (src & 0xFF); @@ -45,7 +45,7 @@ void put_header(char dst[], uint64_t src) } } -void fetch_header(uint64_t *dst, char src[]) +static void fetch_header(uint64_t *dst, char src[]) { for (int i = 0; i < MDB_IAMPROXY_DEFAULT_HEADER_SIZE; ++i) { (*dst) |= (((uint64_t)src[i]) << (i * CHAR_BIT));