... | ... |
@@ -521,8 +521,8 @@ static char *cabd_read_string(struct mspack_system *sys, |
521 | 521 |
{ |
522 | 522 |
off_t base = sys->tell(fh); |
523 | 523 |
char buf[256], *str; |
524 |
- unsigned int i, ok; |
|
525 |
- int len; |
|
524 |
+ unsigned int ok; |
|
525 |
+ int i, len; |
|
526 | 526 |
|
527 | 527 |
/* read up to 256 bytes */ |
528 | 528 |
len = sys->read(fh, &buf[0], 256); |
... | ... |
@@ -908,18 +908,18 @@ int pdf_extract_obj(struct pdf_struct *pdf, struct pdf_obj *obj, uint32_t flags) |
908 | 908 |
if (length < 0) |
909 | 909 |
length = 0; |
910 | 910 |
|
911 |
- cli_dbgmsg("cli_pdf: calculated length %jd\n", length); |
|
911 |
+ cli_dbgmsg("cli_pdf: calculated length %lld\n", (long long)length); |
|
912 | 912 |
} else { |
913 | 913 |
if (size > (size_t)length+2) { |
914 |
- cli_dbgmsg("cli_pdf: calculated length %jd < %jd\n", |
|
915 |
- length, size); |
|
914 |
+ cli_dbgmsg("cli_pdf: calculated length %zu < %zu\n", |
|
915 |
+ (size_t)length, size); |
|
916 | 916 |
length = size; |
917 | 917 |
} |
918 | 918 |
} |
919 | 919 |
|
920 | 920 |
if (orig_length && size > (size_t)orig_length + 20) { |
921 |
- cli_dbgmsg("cli_pdf: orig length: %jd, length: %jd, size: %jd\n", |
|
922 |
- orig_length, length, size); |
|
921 |
+ cli_dbgmsg("cli_pdf: orig length: %lld, length: %lld, size: %zu\n", |
|
922 |
+ (long long)orig_length, (long long)length, size); |
|
923 | 923 |
pdfobj_flag(pdf, obj, BAD_STREAMLEN); |
924 | 924 |
} |
925 | 925 |
|
... | ... |
@@ -2320,7 +2320,7 @@ int cli_pdf(const char *dir, cli_ctx *ctx, off_t offset) |
2320 | 2320 |
|
2321 | 2321 |
if (pdfver != start || offset) { |
2322 | 2322 |
pdf.flags |= 1 << BAD_PDF_HEADERPOS; |
2323 |
- cli_dbgmsg("cli_pdf: PDF header is not at position 0: %jd\n",(pdfver-start+offset)); |
|
2323 |
+ cli_dbgmsg("cli_pdf: PDF header is not at position 0: %lld\n", (long long)(pdfver - start + offset)); |
|
2324 | 2324 |
#if HAVE_JSON |
2325 | 2325 |
if (pdfobj) |
2326 | 2326 |
cli_jsonbool(pdfobj, "BadVersionLocation", 1); |
... | ... |
@@ -2429,7 +2429,7 @@ int cli_pdf(const char *dir, cli_ctx *ctx, off_t offset) |
2429 | 2429 |
while ((rc = pdf_findobj(&pdf)) > 0) { |
2430 | 2430 |
struct pdf_obj *obj = &pdf.objs[pdf.nobjs-1]; |
2431 | 2431 |
|
2432 |
- cli_dbgmsg("cli_pdf: found %d %d obj @%jd\n", obj->id >> 8, obj->id&0xff, (obj->start + offset)); |
|
2432 |
+ cli_dbgmsg("cli_pdf: found %d %d obj @%lld\n", obj->id >> 8, obj->id&0xff, (long long)(obj->start + offset)); |
|
2433 | 2433 |
} |
2434 | 2434 |
|
2435 | 2435 |
if (pdf.nobjs) |