summaryrefslogtreecommitdiff
path: root/src/libstddjb/cdb_successor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/cdb_successor.c')
-rw-r--r--src/libstddjb/cdb_successor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstddjb/cdb_successor.c b/src/libstddjb/cdb_successor.c
index 5660692..0d7e17f 100644
--- a/src/libstddjb/cdb_successor.c
+++ b/src/libstddjb/cdb_successor.c
@@ -1,14 +1,15 @@
/* ISC license. */
+#include <stdint.h>
#include <skalibs/uint32.h>
#include <skalibs/cdb.h>
int cdb_successor (struct cdb *c, char const *key, unsigned int klen)
{
- uint32 kpos ;
+ uint32_t kpos ;
if (key)
{
- register int r = cdb_find(c, key, klen) ;
+ int r = cdb_find(c, key, klen) ;
if (r < 1) return r ;
kpos = c->dpos + c->dlen ;
}