database: Move string pool to the end of the file again
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 12 Dec 2017 13:31:27 +0000 (13:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 12 Dec 2017 13:31:27 +0000 (13:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/database.c

index f51931a..9db875b 100644 (file)
@@ -431,15 +431,15 @@ LOC_EXPORT int loc_database_write(struct loc_database* db, FILE* f) {
 
        loc_database_align_page_boundary(&offset, f);
 
-       // Write pool
-       r = loc_database_write_pool(db, &header, &offset, f);
+       // Write all ASes
+       r = loc_database_write_as_section(db, &header, &offset, f);
        if (r)
                return r;
 
        loc_database_align_page_boundary(&offset, f);
 
-       // Write all ASes
-       r = loc_database_write_as_section(db, &header, &offset, f);
+       // Write pool
+       r = loc_database_write_pool(db, &header, &offset, f);
        if (r)
                return r;