aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/util.cc2
-rw-r--r--src/libutil/xml-writer.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 0902c3783..998037337 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -10,6 +10,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
+#include <climits>
#include <iostream>
#include <sstream>
#include <thread>
@@ -17,7 +18,6 @@
#include <fcntl.h>
#include <grp.h>
-#include <limits.h>
#include <pwd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
diff --git a/src/libutil/xml-writer.cc b/src/libutil/xml-writer.cc
index e5cc2e9fc..68857e34d 100644
--- a/src/libutil/xml-writer.cc
+++ b/src/libutil/xml-writer.cc
@@ -1,10 +1,10 @@
-#include <assert.h>
+#include <cassert>
#include "xml-writer.hh"
namespace nix {
-
+
XMLWriter::XMLWriter(bool indent, std::ostream & output)
: output(output), indent(indent)