Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2018 06:28:52 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r465068 - head/sysutils/sleuthkit/files
Message-ID:  <201803200628.w2K6SqGe014126@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Tue Mar 20 06:28:52 2018
New Revision: 465068
URL: https://svnweb.freebsd.org/changeset/ports/465068

Log:
  Fix build with clang 6

Added:
  head/sysutils/sleuthkit/files/
  head/sysutils/sleuthkit/files/patch-tools_srchtools_sigfind.cpp   (contents, props changed)

Added: head/sysutils/sleuthkit/files/patch-tools_srchtools_sigfind.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/sleuthkit/files/patch-tools_srchtools_sigfind.cpp	Tue Mar 20 06:28:52 2018	(r465068)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803200628.w2K6SqGe014126>