]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/test-stringpool.c
downloader: Change user-agent to location
[people/ms/libloc.git] / src / test-stringpool.c
index 85bbf68f07b0a897d1cabdc46a31652a3f641dd7..3cde27a68fb275911be3f473eade9612987a5bc0 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <stdio.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <fcntl.h>
@@ -73,7 +74,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) {