Skip to content

Commit

Permalink
b2b_entities: Fix ARM32 time_t warnings (Ubuntu 22.04)
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Apr 30, 2024
1 parent 1e0ea18 commit 61ba2cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/b2b_entities/dlg.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ str* b2b_generate_key(unsigned int hash_index, unsigned int local_index)
str* b2b_key;
int len;

len = sprintf(buf, "%s.%d.%d.%ld.%d", b2b_key_prefix.s, hash_index, local_index,
startup_time+get_ticks(), rand());
len = sprintf(buf, "%s.%d.%d.%lld.%d", b2b_key_prefix.s, hash_index, local_index,
(long long)(startup_time+get_ticks()), rand());

b2b_key = (str*)pkg_malloc(sizeof(str)+ len);
if(b2b_key== NULL)
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/install_depends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ${SUDO} apt-get update -y
${SUDO} apt-get -y remove libmemcached11 libpq5
${SUDO} apt-get -y autoremove

PKGS="$PKGS $(. "scripts/build/apt_requirements_postupdate.sh")"
PKGS="$PKGS $(. "$(dirname $0)/apt_requirements_postupdate.sh")"
${SUDO} apt-get -y --allow-downgrades install ${PKGS}

if [ ! -z "${POST_INSTALL_CMD}" ]
Expand Down

0 comments on commit 61ba2cc

Please sign in to comment.