summaryrefslogtreecommitdiffstats
path: root/vespalib/src
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-06-02 13:15:05 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-06-06 09:12:38 +0200
commit02a2201dbce24db2586d94f37a6093192a0da691 (patch)
tree9324059701e251966093eda356c8e3040897ec95 /vespalib/src
parent8e0c48091d4c944bec4a4c56ae49f25125262c82 (diff)
checkpoint for slimmer SerializableArray
Diffstat (limited to 'vespalib/src')
-rw-r--r--vespalib/src/vespa/vespalib/util/buffer.h2
-rw-r--r--vespalib/src/vespa/vespalib/util/memory.h4
-rw-r--r--vespalib/src/vespa/vespalib/util/sync.h1
3 files changed, 3 insertions, 4 deletions
diff --git a/vespalib/src/vespa/vespalib/util/buffer.h b/vespalib/src/vespa/vespalib/util/buffer.h
index 88fe6359aae..3a43a2c0dc4 100644
--- a/vespalib/src/vespa/vespalib/util/buffer.h
+++ b/vespalib/src/vespa/vespalib/util/buffer.h
@@ -1,7 +1,7 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
-#include <sys/types.h>
+#include <cstddef>
namespace vespalib {
diff --git a/vespalib/src/vespa/vespalib/util/memory.h b/vespalib/src/vespa/vespalib/util/memory.h
index 2d940882320..85c8e46dcc2 100644
--- a/vespalib/src/vespa/vespalib/util/memory.h
+++ b/vespalib/src/vespa/vespalib/util/memory.h
@@ -4,8 +4,8 @@
#pragma once
#include <memory>
-#include <string.h>
-#include <stdlib.h>
+#include <cstring>
+#include <cstdlib>
/// Macro to give you number of elements in a defined array.
#define VESPA_NELEMS(a) (sizeof(a)/sizeof(a[0]))
diff --git a/vespalib/src/vespa/vespalib/util/sync.h b/vespalib/src/vespa/vespalib/util/sync.h
index a44763ec755..315bb79487e 100644
--- a/vespalib/src/vespa/vespalib/util/sync.h
+++ b/vespalib/src/vespa/vespalib/util/sync.h
@@ -34,7 +34,6 @@ public:
};
#endif
-
/**
* @brief A Lock is a synchronization primitive used to ensure mutual
* exclusion.