summaryrefslogtreecommitdiffstats
path: root/src/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/context.c')
-rw-r--r--src/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context.c b/src/context.c
index 9fe37bb..6611d03 100644
--- a/src/context.c
+++ b/src/context.c
@@ -118,7 +118,7 @@ struct syrep_db_context* db_context_open(const char *filename, int force) {
assert(k);
if ((f = fopen(path, "r"))) {
- if (fscanf(f, "%i", &c->timestamp) != 1)
+ if (fscanf(f, "%u", &c->timestamp) != 1)
c->timestamp = 0;
fclose(f);
}