Skip to content

Commit

Permalink
mdb_iamproxy fix (#566)
Browse files Browse the repository at this point in the history
* make some functions from mdb_iamproxy.c static

* fix new line symbol missing

* make apply_fmt

---------

Co-authored-by: Andrey Ovchinnikov <[email protected]>
  • Loading branch information
AndrewOvvv and Andrey Ovchinnikov authored Feb 5, 2024
1 parent 0e44d13 commit 4b9793b
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 4b9793b

Please sign in to comment.