summaryrefslogtreecommitdiffstats
path: root/fnet/src/tests/examples
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-02-15 14:00:10 +0000
committerArne Juul <arnej@verizonmedia.com>2021-02-15 14:16:23 +0000
commite22d5ee57d65ead53263c0e48e802fcfb5f21950 (patch)
treed6f9ebd3451c9579e46bbaac1fd121950518e901 /fnet/src/tests/examples
parent6a8f923c6367e951b3b7931a8b80f2a24bbd4eb4 (diff)
use size literals in fnet
Diffstat (limited to 'fnet/src/tests/examples')
-rw-r--r--fnet/src/tests/examples/examples_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/fnet/src/tests/examples/examples_test.cpp b/fnet/src/tests/examples/examples_test.cpp
index 0496c5a9de8..2b19edf8b31 100644
--- a/fnet/src/tests/examples/examples_test.cpp
+++ b/fnet/src/tests/examples/examples_test.cpp
@@ -1,6 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/vespalib/util/child_process.h>
+#include <vespa/vespalib/util/size_literals.h>
#include <vespa/vespalib/util/stringfmt.h>
#include <vespa/vespalib/util/thread.h>
#include <atomic>
@@ -13,7 +14,7 @@ static const int PORT1 = 18571;
using vespalib::ChildProcess;
bool runProc(ChildProcess &proc, std::atomic<bool> &done) {
- char buf[4096];
+ char buf[4_Ki];
proc.close(); // close stdin
while (proc.running() && !done) {
if (!proc.eof()) {