diff options
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/serialise.hh | 2 | ||||
-rw-r--r-- | src/libutil/util.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh index e1c4514dbb4b..e5a9df1d050a 100644 --- a/src/libutil/serialise.hh +++ b/src/libutil/serialise.hh @@ -61,7 +61,7 @@ struct BufferedSource : Source size_t read(unsigned char * data, size_t len); - /* Underlying read call, to be overriden. */ + /* Underlying read call, to be overridden. */ virtual size_t readUnbuffered(unsigned char * data, size_t len) = 0; bool hasData(); diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 5a88a158c389..8fd61826fa28 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -629,8 +629,8 @@ AutoCloseFD::AutoCloseFD(int fd) AutoCloseFD::AutoCloseFD(const AutoCloseFD & fd) { - /* Copying a AutoCloseFD isn't allowed (who should get to close - it?). But as a edge case, allow copying of closed + /* Copying an AutoCloseFD isn't allowed (who should get to close + it?). But as an edge case, allow copying of closed AutoCloseFDs. This is necessary due to tiresome reasons involving copy constructor use on default object values in STL containers (like when you do `map[value]' where value isn't in |