Skip to content

Commit fa710d3

Browse files
committed
fix: minor compilation issue
1 parent b308432 commit fa710d3

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/database.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#ifndef __CLOUDSYNC_DATABASE__
99
#define __CLOUDSYNC_DATABASE__
1010

11+
#include <stdarg.h>
12+
#include <stdint.h>
1113
#include <stdbool.h>
1214

1315
typedef long long int db_int64;
@@ -135,6 +137,7 @@ void *dbmem_alloc (db_uint64 size);
135137
void *dbmem_zeroalloc (db_uint64 size);
136138
void *dbmem_realloc (void *ptr, db_uint64 new_size);
137139
char *dbmem_mprintf(const char *format, ...);
140+
char *dbmem_vmprintf (const char *format, va_list list);
138141
void dbmem_free (void *ptr);
139142
db_uint64 dbmem_size (void *ptr);
140143

src/dbutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ int dbutils_settings_load (db_t *db, cloudsync_context *data) {
387387
}
388388

389389
int dbutils_settings_init (db_t *db, void *cloudsync_data) {
390-
DEBUG_SETTINGS("dbutils_settings_init %p", context);
390+
DEBUG_SETTINGS("dbutils_settings_init %p", cloudsync_data);
391391

392392
cloudsync_context *data = (cloudsync_context *)cloudsync_data;
393393

src/utils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
void memdebug_init (int once);
9999
void memdebug_finalize (void);
100100
void *memdebug_alloc (db_uint64 size);
101+
void *memdebug_zeroalloc (db_uint64 size);
101102
void *memdebug_realloc (void *ptr, db_uint64 new_size);
102103
char *memdebug_vmprintf (const char *format, va_list list);
103104
char *memdebug_mprintf(const char *format, ...);

0 commit comments

Comments
 (0)