]> git.ipfire.org Git - location/libloc.git/commitdiff
Fix off_t casting in tests
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Oct 2019 10:54:52 +0000 (11:54 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Oct 2019 10:54:52 +0000 (11:54 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/test-stringpool.c

index 85bbf68f07b0a897d1cabdc46a31652a3f641dd7..1df7cc5285a1799c404ba8a742db0c02fdb9a02a 100644 (file)
@@ -73,7 +73,7 @@ int main(int argc, char** argv) {
                exit(EXIT_FAILURE);
        }
 
-       printf("Added string at %jd\n", pos);
+       printf("Added string at %jd\n", (intmax_t)pos);
 
        // Must start at first byte
        if (pos != 0) {