From bc3f2649adee9ace37960370626b0273bfb15e11 Mon Sep 17 00:00:00 2001 From: Laszlo Csomor Date: Tue, 22 Nov 2016 14:02:07 +0000 Subject: Bazel client: fix compiler warnings -- MOS_MIGRATED_REVID=139899429 --- src/main/cpp/util/file.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/cpp/util/file.h') diff --git a/src/main/cpp/util/file.h b/src/main/cpp/util/file.h index 6118eefb0b..13a2b4828c 100644 --- a/src/main/cpp/util/file.h +++ b/src/main/cpp/util/file.h @@ -24,11 +24,13 @@ class IPipe { virtual ~IPipe() {} // Sends `size` bytes from `buffer` through the pipe. - virtual bool Send(void *buffer, size_t size) = 0; + // Returns true if `size` is not negative and could send all the data. + virtual bool Send(void *buffer, int size) = 0; // Receives at most `size` bytes into `buffer` from the pipe. // Returns the number of bytes received; sets `errno` upon error. - virtual int Receive(void *buffer, size_t size) = 0; + // If `size` is negative, returns -1. + virtual int Receive(void *buffer, int size) = 0; }; // Returns the part of the path before the final "/". If there is a single -- cgit v1.2.3