summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/proc_net_unix.cc
diff options
context:
space:
mode:
authorKevin Krakauer <krakauer@google.com>2020-12-23 15:18:54 -0800
committerKevin Krakauer <krakauer@google.com>2020-12-23 16:49:01 -0800
commit5259b90dac7201c2e2f80ff5e1c25050e11d4035 (patch)
tree3e73919f9694a9b27bf86927e03cc74b9d7294b8 /test/syscalls/linux/proc_net_unix.cc
parentd07915987631f4c3c6345275019a5b5b0cf28dbb (diff)
Resolve compiler warnings
The buildkite syscall tests start with a lot of C++ warnings. This cleans that up a little.
Diffstat (limited to 'test/syscalls/linux/proc_net_unix.cc')
-rw-r--r--test/syscalls/linux/proc_net_unix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/linux/proc_net_unix.cc b/test/syscalls/linux/proc_net_unix.cc
index a63067586..662c6feb2 100644
--- a/test/syscalls/linux/proc_net_unix.cc
+++ b/test/syscalls/linux/proc_net_unix.cc
@@ -181,7 +181,7 @@ PosixErrorOr<std::vector<UnixEntry>> ProcNetUnixEntries() {
// Returns true on match, and sets 'match' to point to the matching entry.
bool FindBy(std::vector<UnixEntry> entries, UnixEntry* match,
std::function<bool(const UnixEntry&)> predicate) {
- for (int i = 0; i < entries.size(); ++i) {
+ for (long unsigned int i = 0; i < entries.size(); ++i) {
if (predicate(entries[i])) {
*match = entries[i];
return true;