aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/tarfile.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-04-15 13:51:00 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-04-15 13:55:22 +0200
commit15f4d4fd437070e898982c510228b6e8eea17b7d (patch)
treecb14c3ea5bcba6165d31083076c575cc2339279f /src/libutil/tarfile.hh
parent6fb75824137de8af12491558c72d2eabc348f6f4 (diff)
Drop libbz2 / zlib / lzma dependency + style fixes
Diffstat (limited to 'src/libutil/tarfile.hh')
-rw-r--r--src/libutil/tarfile.hh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libutil/tarfile.hh b/src/libutil/tarfile.hh
index 18adf3490..4d9141fd4 100644
--- a/src/libutil/tarfile.hh
+++ b/src/libutil/tarfile.hh
@@ -4,18 +4,18 @@
namespace nix {
struct TarArchive {
- struct archive *archive;
- Source *source;
+ struct archive * archive;
+ Source * source;
std::vector<unsigned char> buffer;
- void check(int err, const char *reason = "Failed to extract archive (%s)");
+ void check(int err, const std::string & reason = "failed to extract archive (%s)");
- TarArchive(Source& source, bool raw = false);
+ TarArchive(Source & source, bool raw = false);
- TarArchive(const Path &path);
+ TarArchive(const Path & path);
// disable copy constructor
- TarArchive(const TarArchive&) = delete;
+ TarArchive(const TarArchive &) = delete;
void close();