aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/util/file.h
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2016-11-22 14:02:07 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-11-22 14:15:35 +0000
commitbc3f2649adee9ace37960370626b0273bfb15e11 (patch)
tree44f31f061808453261be83e12c84e3ffc601e3ce /src/main/cpp/util/file.h
parenta23068a19a00515555526e2e377f1ec540ed7a40 (diff)
Bazel client: fix compiler warnings
-- MOS_MIGRATED_REVID=139899429
Diffstat (limited to 'src/main/cpp/util/file.h')
-rw-r--r--src/main/cpp/util/file.h6
1 files changed, 4 insertions, 2 deletions
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