aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-01 17:28:19 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-01 17:30:17 +0200
commit3e4bdfedee747868a32b8a9c7a89a6f860415be8 (patch)
tree4c2afa071c5bda6a6d8c045a6c8c6f17b8a8bc2b /src/libutil/util.cc
parentdeac171925bf2e3960d2f837d95b71c0427d26dd (diff)
Minor cleanup
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 026e49351..98c0aff1e 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -1078,9 +1078,9 @@ bool statusOk(int status)
}
-bool hasPrefix(const string & s, const string & suffix)
+bool hasPrefix(const string & s, const string & prefix)
{
- return s.compare(0, suffix.size(), suffix) == 0;
+ return s.compare(0, prefix.size(), prefix) == 0;
}