diff options
author | MANTANI Nobutaka <nobutaka@FreeBSD.org> | 2018-02-10 09:18:10 +0000 |
---|---|---|
committer | MANTANI Nobutaka <nobutaka@FreeBSD.org> | 2018-02-10 09:18:10 +0000 |
commit | 82fc859f11378af0d1ecf971a005a82c678d3104 (patch) | |
tree | 934a5fe9aeee48a512973bd871737bd556caf47a /security/md5deep/files/patch-src_files.cpp | |
parent | - Fix LICENSE (diff) |
Fix build with Clang 6.
Notes
Notes:
svn path=/head/; revision=461369
Diffstat (limited to 'security/md5deep/files/patch-src_files.cpp')
-rw-r--r-- | security/md5deep/files/patch-src_files.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/security/md5deep/files/patch-src_files.cpp b/security/md5deep/files/patch-src_files.cpp new file mode 100644 index 000000000000..417d03b4f772 --- /dev/null +++ b/security/md5deep/files/patch-src_files.cpp @@ -0,0 +1,20 @@ +--- src/files.cpp.orig 2018-02-10 07:48:06 UTC ++++ src/files.cpp +@@ -509,7 +509,7 @@ int state::parse_encase_file(const char + + // Users expect the line numbers to start at one, not zero. + if ((!ocb.opt_silent) || (mode_warn_only)) { +- ocb.error("%s: No hash found in line %"PRIu32, fn, count + 1); ++ ocb.error("%s: No hash found in line %" PRIu32, fn, count + 1); + ocb.error("%s: %s", fn, strerror(errno)); + return status_t::STATUS_USER_ERROR; + } +@@ -542,7 +542,7 @@ int state::parse_encase_file(const char + } + + if (expected_hashes != count){ +- ocb.error("%s: Expecting %"PRIu32" hashes, found %"PRIu32"\n", ++ ocb.error("%s: Expecting %" PRIu32" hashes, found %" PRIu32"\n", + fn, expected_hashes, count); + } + return status_t::status_ok; |