aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/serialise.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-06-12 17:30:37 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-06-12 17:30:37 +0200
commit9d0709e8c47082cec35d6412053eacfadae23bcd (patch)
tree7b6063edebaee6fe486ec96fc54d7912780b5019 /src/libutil/serialise.hh
parent48495f67ed893c4ee056099ae0ca5a2afacde93c (diff)
Don't use member initialisers
They're a little bit too recent (only supported since GCC 4.7). http://hydra.nixos.org/build/11851475
Diffstat (limited to 'src/libutil/serialise.hh')
-rw-r--r--src/libutil/serialise.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh
index 1b3fb744f..6a6f028aa 100644
--- a/src/libutil/serialise.hh
+++ b/src/libutil/serialise.hh
@@ -72,11 +72,11 @@ struct BufferedSource : Source
struct FdSink : BufferedSink
{
int fd;
- bool warn = false;
- size_t written = 0;
+ bool warn;
+ size_t written;
- FdSink() : fd(-1) { }
- FdSink(int fd) : fd(fd) { }
+ FdSink() : fd(-1), warn(false), written(0) { }
+ FdSink(int fd) : fd(fd), warn(false), written(0) { }
~FdSink();
void write(const unsigned char * data, size_t len);