Commit 36b9fd75 authored by Michael Tremer's avatar Michael Tremer

Silence compiler formatting warnings for size_t

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 5b4bd18a
......@@ -250,11 +250,11 @@ static int loc_database_read_signature(struct loc_database* db,
char** dst, char* src, size_t length) {
// Check for a plausible signature length
if (length > LOC_SIGNATURE_MAX_LENGTH) {
ERROR(db->ctx, "Signature too long: %ld\n", length);
ERROR(db->ctx, "Signature too long: %zu\n", length);
return -EINVAL;
}
DEBUG(db->ctx, "Reading signature of %ld bytes\n", length);
DEBUG(db->ctx, "Reading signature of %zu bytes\n", length);
// Allocate space
*dst = malloc(length);
......
......@@ -612,7 +612,7 @@ static int loc_writer_create_signature(struct loc_writer* writer,
goto END;
}
DEBUG(writer->ctx, "Successfully generated signature of %lu bytes\n", *length);
DEBUG(writer->ctx, "Successfully generated signature of %zu bytes\n", *length);
r = 0;
// Dump signature
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment