Skip to content

Commit

Permalink
make some functions from mdb_iamproxy.c static
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Ovchinnikov committed Feb 5, 2024
1 parent 0e44d13 commit 7e477db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/mdb_iamproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
#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);
src >>= CHAR_BIT;
}
}

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));
Expand Down

0 comments on commit 7e477db

Please sign in to comment.