From 3d9fc7ab536fddd8c41b76f06872bedb8ee9a590 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Mon, 18 Nov 2024 16:04:48 -0800 Subject: [PATCH] Clarify call to upx_compress(); NFC modified: p_unix.cpp --- src/p_unix.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/p_unix.cpp b/src/p_unix.cpp index b65190b6..bf9d6517 100644 --- a/src/p_unix.cpp +++ b/src/p_unix.cpp @@ -405,8 +405,10 @@ void PackUnix::packExtent( unsigned hdr_c_len = 0; MemBuffer hdr_obuf; hdr_obuf.allocForCompression(hdr_u_len); - int r = upx_compress(hdr_ibuf, hdr_u_len, hdr_obuf, &hdr_c_len, nullptr, - ph_forced_method(ph.method), 10, nullptr, nullptr); + int r = upx_compress(hdr_ibuf, hdr_u_len, hdr_obuf, &hdr_c_len, + /* &progress callback */ nullptr, + ph_forced_method(ph.method), 10, + /* &config_t */ nullptr, /* &result_t */ nullptr); if (r != UPX_E_OK) throwInternalError("header compression failed"); if (hdr_c_len >= hdr_u_len)