]> Nishi Git Mirror - dataworks.git/commitdiff
works with watcom
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Tue, 21 May 2024 02:54:08 +0000 (02:54 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Tue, 21 May 2024 02:54:08 +0000 (02:54 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@49 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Library/database.c
Library/dw_database.h

index 9fc9c75671bd236a39431fad17a71da08ef7fa1a..ce64a4d70b1b90bf5e8d7de0e03ed07b0816dc54 100644 (file)
@@ -67,10 +67,10 @@ int dataworks_database_create(const char* fname) {
                fwrite(nul, 1, 1, f);
                int j;
 #ifdef BUFSIZE
-               for(j = 0; j < 256 / BUFSIZE; j++){
+               for(j = 0; j < 256 / BUFSIZE; j++) {
                        fwrite(nul, 1, BUFSIZE, f);
                }
-               for(j = 0; j < 4096 / BUFSIZE; j++){
+               for(j = 0; j < 4096 / BUFSIZE; j++) {
                        fwrite(nul, 1, BUFSIZE, f);
                }
 #else
index 41ab2b7272ec96ce8302d6a3ea18e6fa3c38b510..99924ba33d87ecc9e0977c98509f62fa4d03dd2e 100644 (file)
@@ -84,7 +84,7 @@ struct dataworks_db_v1_indexentry {
        char dbname[256];
        char fields[4096];
 };
+
 /**
  * @~english
  * @brief Creates the database.