diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2018-03-20 06:28:52 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2018-03-20 06:28:52 +0000 |
commit | b5c93165bb2ac0d6752163394da8995f2c5f03f2 (patch) | |
tree | 7cf3c17f85eb6fff63a1e1d96df46ae67a59c1dd | |
parent | Update MAINTAINER to my new FreBSD.org account (diff) |
Fix build with clang 6
-rw-r--r-- | sysutils/sleuthkit/files/patch-tools_srchtools_sigfind.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/sleuthkit/files/patch-tools_srchtools_sigfind.cpp b/sysutils/sleuthkit/files/patch-tools_srchtools_sigfind.cpp new file mode 100644 index 000000000000..32d9aa113f59 --- /dev/null +++ b/sysutils/sleuthkit/files/patch-tools_srchtools_sigfind.cpp @@ -0,0 +1,23 @@ +--- tools/srchtools/sigfind.cpp.orig 2018-02-21 04:27:25 UTC ++++ tools/srchtools/sigfind.cpp +@@ -302,7 +302,7 @@ main(int argc, char **argv) + break; + } + else if (retval == -1) { +- fprintf(stderr, "error reading bytes %"PRIuOFF"\n", i); ++ fprintf(stderr, "error reading bytes %" PRIuOFF "\n", i); + exit(1); + } + +@@ -312,9 +312,9 @@ main(int argc, char **argv) + ((sig_size < 3) || (block[rel_offset + 2] == sig[2])) && + ((sig_size < 4) || (block[rel_offset + 3] == sig[3]))) { + if (prev_hit == -1) +- printf("Block: %"PRIuOFF" (-)\n", i); ++ printf("Block: %" PRIuOFF " (-)\n", i); + else +- printf("Block: %"PRIuOFF" (+%"PRIuOFF")\n", i, ++ printf("Block: %" PRIuOFF " (+%" PRIuOFF ")\n", i, + (i - prev_hit)); + + prev_hit = i; |