diff options
author | Nathan Binkert <binkertn@umich.edu> | 2007-03-03 07:45:55 -0800 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2007-03-03 07:45:55 -0800 |
commit | 53f5fda5de2b2ed7229cec0118d27ab420f8dca1 (patch) | |
tree | eb7afbce6cf0bd508afc59acfdbd46e4dd05d1cd /src/base | |
parent | ffe6bebb05c30b0f1d7cde5ad5b94a2551938630 (diff) | |
download | gem5-53f5fda5de2b2ed7229cec0118d27ab420f8dca1.tar.xz |
Do the default argument stuff in python
--HG--
extra : convert_revision : 235f85e611a669401c6ddfbdf14244e80eb55888
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/stats/mysql.cc | 5 | ||||
-rw-r--r-- | src/base/stats/mysql.hh | 10 |
2 files changed, 6 insertions, 9 deletions
diff --git a/src/base/stats/mysql.cc b/src/base/stats/mysql.cc index d4035986b..39a687fff 100644 --- a/src/base/stats/mysql.cc +++ b/src/base/stats/mysql.cc @@ -930,7 +930,7 @@ MySql::visit(const FormulaData &data) bool initMySQL(string host, string user, string password, string database, - string name, string sample, string project) + string project, string name, string sample) { extern list<Output *> OutputList; static MySql mysql; @@ -938,9 +938,6 @@ initMySQL(string host, string user, string password, string database, if (mysql.connected()) return false; - if (user.empty()) - user = username(); - mysql.connect(host, user, password, database, name, sample, project); OutputList.push_back(&mysql); diff --git a/src/base/stats/mysql.hh b/src/base/stats/mysql.hh index 52f93ac61..0ce381c2f 100644 --- a/src/base/stats/mysql.hh +++ b/src/base/stats/mysql.hh @@ -187,15 +187,15 @@ class MySql : public Output void configure(const FormulaData &data); }; -bool initMySQL(std::string host, std::string database, std::string user = "", - std::string passwd = "", std::string name = "test", - std::string sample = "0", std::string project = "test"); +bool initMySQL(std::string host, std::string database, std::string user, + std::string passwd, std::string project, std::string name, + std::string sample); #if !USE_MYSQL inline bool initMySQL(std::string host, std::string user, std::string password, - std::string database, std::string name, std::string sample, - std::string project) + std::string database, std::string project, std::string name, + std::string sample) { return false; } |