openbsd-ports/security/hashdeep/patches/patch-src_display_cpp
feinerer b805d8625b Import hashdeep 4.4
hashdeep is a set of cross-platform tools to compute hashes, or message
digests, for any number of files while optionally recursively digging through
the directory structure. It can also take a list of known hashes and display
the filenames of input files whose hashes either do or do not match any of the
known hashes. This version supports MD5, SHA-1, SHA-256, Tiger, and Whirlpool
hashes.

ok giovanni@
2018-07-05 19:17:20 +00:00

39 lines
1.6 KiB
Plaintext

$OpenBSD: patch-src_display_cpp,v 1.1.1.1 2018/07/05 19:17:20 feinerer Exp $
Fixes for Clang 6.
Index: src/display.cpp
--- src/display.cpp.orig
+++ src/display.cpp
@@ -311,7 +311,7 @@ void display::display_realtime_stats(const file_data_h
ss << mb_read << "MB of " << fdht->stat_megs() << "MB done, ";
char msg[64];
- snprintf(msg,sizeof(msg),"%02"PRIu64":%02"PRIu64":%02"PRIu64" left", hour, min, seconds);
+ snprintf(msg,sizeof(msg),"%02" PRIu64":%02" PRIu64":%02" PRIu64" left", hour, min, seconds);
ss << msg;
}
ss << "\r";
@@ -424,14 +424,14 @@ void display::display_audit_results()
if (opt_verbose) {
if(opt_verbose >= MORE_VERBOSE){
- status(" Input files examined: %"PRIu64, this->match.total);
- status(" Known files expecting: %"PRIu64, this->match.expect);
+ status(" Input files examined: %" PRIu64, this->match.total);
+ status(" Known files expecting: %" PRIu64, this->match.expect);
}
- status(" Files matched: %"PRIu64, this->match.exact);
- status("Files partially matched: %"PRIu64, this->match.partial);
- status(" Files moved: %"PRIu64, this->match.moved);
- status(" New files found: %"PRIu64, this->match.unknown);
- status(" Known files not found: %"PRIu64, this->match.unused);
+ status(" Files matched: %" PRIu64, this->match.exact);
+ status("Files partially matched: %" PRIu64, this->match.partial);
+ status(" Files moved: %" PRIu64, this->match.moved);
+ status(" New files found: %" PRIu64, this->match.unknown);
+ status(" Known files not found: %" PRIu64, this->match.unused);
}
}