summaryrefslogtreecommitdiff
path: root/lib/tdb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tdb')
-rw-r--r--lib/tdb/tools/tdbrestore.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/tdb/tools/tdbrestore.c b/lib/tdb/tools/tdbrestore.c
index 81c986c6003..9d5146272cc 100644
--- a/lib/tdb/tools/tdbrestore.c
+++ b/lib/tdb/tools/tdbrestore.c
@@ -27,7 +27,8 @@
static int read_linehead(FILE *f)
{
- int i, c;
+ size_t i;
+ int c;
int num_bytes;
char prefix[128];
@@ -84,7 +85,7 @@ static int read_hex(void) {
static int read_data(FILE *f, TDB_DATA *d, size_t size) {
int c, low, high;
- int i;
+ size_t i;
d->dptr = (unsigned char *)malloc(size);
if (d->dptr == NULL) {