]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/database.c
Silence compiler formatting warnings for size_t
[people/ms/libloc.git] / src / database.c
index 1871b740f7bbbd47d3e7b6b8a6f5e4c59c47f8ff..7100298b3de866f467b4e2ca3cbb567da32eec0c 100644 (file)
@@ -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);