Skip to content

Commit

Permalink
Merge pull request #62 from larsewi/macos
Browse files Browse the repository at this point in the history
Fixed issues detected when compiling on macOS
  • Loading branch information
larsewi authored Apr 30, 2024
2 parents 7614a68 + 18c6c58 commit 3eb2377
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.63])
AC_INIT([leech], [0.1.8], [https://github.com/larsewi/leech/issues], [leech],
AC_INIT([leech], [0.1.9], [https://github.com/larsewi/leech/issues], [leech],
[https://github.com/larsewi/leech])
AC_CONFIG_SRCDIR([lib/leech.h])

Expand Down Expand Up @@ -71,7 +71,7 @@ else
fi

# Compile with check test framework
AC_ARG_WITH([check], AS_HELP_STRING([--with-check-framework], [use check framework]))
AC_ARG_WITH([check-framework], AS_HELP_STRING([--with-check-framework], [use check framework]))
AM_CONDITIONAL([WITH_CHECK], [test "x$with_check_framework" = "xyes"])
AS_IF([test "x$with_check_framework" = "xyes"], [PKG_CHECK_MODULES([CHECK], [check])])

Expand Down
9 changes: 7 additions & 2 deletions lib/leech.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static bool Commit(const LCH_Instance *const instance) {
LCH_JsonDestroy(block);

LCH_LOG_INFO(
"Created commit with %zu inserts, %zu deletes and %zu updates over %zu "
"Created block with %zu inserts, %zu deletes and %zu updates over %zu "
"tables",
tot_inserts, tot_deletes, tot_updates, n_tables);

Expand Down Expand Up @@ -552,7 +552,7 @@ LCH_Buffer *LCH_Rebase(const char *const work_dir) {

const LCH_List *const table_defs = LCH_InstanceGetTables(instance);
size_t n_tables = LCH_ListLength(table_defs);
size_t tot_inserts;
size_t tot_inserts = 0;

LCH_Json *const deltas = LCH_JsonArrayCreate();
if (deltas == NULL) {
Expand Down Expand Up @@ -641,6 +641,11 @@ LCH_Buffer *LCH_Rebase(const char *const work_dir) {
return NULL;
}

LCH_LOG_INFO(
"Created block with %zu inserts, %zu deletes and %zu updates over %zu "
"tables",
tot_inserts, 0, 0, n_tables);

LCH_Json *const patch = LCH_PatchCreate(parent_id);
free(parent_id);
if (patch == NULL) {
Expand Down

0 comments on commit 3eb2377

Please sign in to comment.