From 7860c959a52a7bed63522bd037610a1d53e195e0 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Wed, 20 Jan 2016 21:37:38 -0800 Subject: [PATCH] Whitespace fixes Signed-off-by: Mark Charlebois --- src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp b/src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp index 3171bc6e6b..da9519ea27 100644 --- a/src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp +++ b/src/platforms/posix/tests/vcdev_test/vcdevtest_example.cpp @@ -60,6 +60,7 @@ static int writer_main(int argc, char *argv[]) char buf[1]; int fd = px4_open(TESTDEV, PX4_F_WRONLY); + if (fd < 0) { PX4_INFO("Writer: Open failed %d %d", fd, px4_errno); return -px4_errno; @@ -94,7 +95,7 @@ class PrivData public: PrivData() : _read_offset(0) {} ~PrivData() {} - + size_t _read_offset; };