mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-12-01 08:07:08 +01:00
Update MaxmindDB to current git.
This commit is contained in:
1 parent
0008869ddd
commit
69a4d305a5
40 files changed
+2291
-1912
No files matched your search
Vendored
+7
-7
@@ -8,9 +8,10 @@
|
||||
|
||||
#include "maxminddb_test_helper.h"
|
||||
|
||||
int test_read(const char *path, const struct stat *UNUSED(
|
||||
sbuf), int flags, struct FTW *UNUSED(ftw))
|
||||
{
|
||||
int test_read(const char *path,
|
||||
const struct stat *UNUSED(sbuf),
|
||||
int flags,
|
||||
struct FTW *UNUSED(ftw)) {
|
||||
// Check if path is a regular file)
|
||||
if (flags != FTW_F) {
|
||||
return 0;
|
||||
@@ -36,16 +37,15 @@ int test_read(const char *path, const struct stat *UNUSED(
|
||||
BAIL_OUT("could not parse IP address");
|
||||
}
|
||||
|
||||
cmp_ok(mmdb_error, "!=", MMDB_SUCCESS, "opening %s returned an error",
|
||||
path);
|
||||
cmp_ok(
|
||||
mmdb_error, "!=", MMDB_SUCCESS, "opening %s returned an error", path);
|
||||
|
||||
MMDB_close(mmdb);
|
||||
free(mmdb);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int main(void) {
|
||||
char *test_db_dir;
|
||||
#ifdef _WIN32
|
||||
test_db_dir = "../t/maxmind-db/bad-data";
|
||||
|
||||
Reference in new issue
Block a user