summaryrefslogtreecommitdiffstats
path: root/squarkdb.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-08-10 14:50:55 +0300
committerTimo Teräs <timo.teras@iki.fi>2010-08-10 14:50:55 +0300
commite38e9c2db7db666605ef914fb481397e784eb7d8 (patch)
tree33c50ba4e2bb69d2c5207d66368eac5bbd7d0f1e /squarkdb.c
parent679cadbe809bdf5436b4f7c48d9722c08a59ab59 (diff)
downloadsquark-e38e9c2db7db666605ef914fb481397e784eb7d8.tar.bz2
squark-e38e9c2db7db666605ef914fb481397e784eb7d8.tar.xz
squarkdb: use stdint.h defined typedefs
u_int32_t is not standard, use uint32_t from stdint.h instead.
Diffstat (limited to 'squarkdb.c')
-rw-r--r--squarkdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/squarkdb.c b/squarkdb.c
index a62ea61..543cbb1 100644
--- a/squarkdb.c
+++ b/squarkdb.c
@@ -85,7 +85,7 @@ void sqdb_close(struct sqdb *db)
close(db->fd);
}
-void *sqdb_section_create(struct sqdb *db, int id, u_int32_t size)
+void *sqdb_section_create(struct sqdb *db, int id, uint32_t size)
{
struct sqdb_header *hdr;
size_t pos;
@@ -106,7 +106,7 @@ void *sqdb_section_create(struct sqdb *db, int id, u_int32_t size)
return db->mmap_base + pos;
}
-void *sqdb_section_get(struct sqdb *db, int id, u_int32_t *size)
+void *sqdb_section_get(struct sqdb *db, int id, uint32_t *size)
{
struct sqdb_header *hdr = db->mmap_base;