]> Nishi Git Mirror - dataworks.git/commitdiff
add freebsd
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Wed, 29 May 2024 04:56:39 +0000 (04:56 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Wed, 29 May 2024 04:56:39 +0000 (04:56 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@133 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Library/database_table.c
Library/dataworks.c

index e3d3ef197af238dee75c6a7d8ba05d99abf5d811..6aa70be98bacc90f71b870427ae5bb4d69f7c650 100644 (file)
@@ -154,6 +154,7 @@ char** dataworks_database_get_table_list(struct dataworks_db* db) {
                __dw_unlockfile(db);
                return list;
        }
+       return NULL;
 }
 
 char** dataworks_database_get_table_fields(struct dataworks_db* db, const char* table) {
@@ -267,6 +268,7 @@ uint64_t dataworks_database_get_table_count(struct dataworks_db* db, const char*
                }
                free(buf);
                __dw_unlockfile(db);
+               return 0;
        } else {
                return 0;
        }
index e8631162a7393712251da5f0b82a7b4f8212afee..8976ceeb7369cc611aa3282f2eb85da45d528b6e 100644 (file)
@@ -38,6 +38,8 @@ const char* dataworks_copyright = "Copyright (c) Crabware 2024\n"
 const char* dataworks_platform = "Windows/"
 #elif defined(__NetBSD__)
 const char* dataworks_platform = "NetBSD/"
+#elif defined(__FreeBSD__)
+const char* dataworks_platform = "FreeBSD/"
 #elif defined(__linux__)
 const char* dataworks_platform = "Linux/"
 #elif defined(__WATCOMC__)