summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-11 10:06:17 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-11 10:06:17 -0700
commit01cabdb0c9003a37e5801667bd408d6c2c7126b6 (patch)
treea9c93008e7374adc1934aab220843f49ee9fdf3c /src
parent7a64cd67a7cb9cda8726cba689fb65baa0bc40d4 (diff)
downloadvyatta-wanloadbalance-01cabdb0c9003a37e5801667bd408d6c2c7126b6.tar.gz
vyatta-wanloadbalance-01cabdb0c9003a37e5801667bd408d6c2c7126b6.zip
fix for bug 6029
* fix 64-bit problem: string::*find*() functions have return type of "size_t", not "unsigned int".
Diffstat (limited to 'src')
-rw-r--r--src/lbdatafactory.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lbdatafactory.cc b/src/lbdatafactory.cc
index febe3b2..1fe2815 100644
--- a/src/lbdatafactory.cc
+++ b/src/lbdatafactory.cc
@@ -56,7 +56,7 @@ LBDataFactory::load(const string &conf_file)
while (fgets(str, 1024, fp) != 0) {
string line(str);
- unsigned int pos = line.find("#");
+ size_t pos = line.find("#");
line = line.substr(0,pos);
string key,value;
@@ -71,7 +71,7 @@ LBDataFactory::load(const string &conf_file)
}
else if (value.empty()) {
if ((pos = line.find("\"")) != string::npos) {
- unsigned int end_pos = line.rfind("\"");
+ size_t end_pos = line.rfind("\"");
symbol = line.substr(pos+1,end_pos-pos-1);
}
value = symbol;