use var passed by reference

This commit is contained in:
Jacek Jendrzej
2013-04-18 19:19:30 +02:00
parent e07e2e5264
commit ddc9229efc
12 changed files with 36 additions and 36 deletions

View File

@@ -24,12 +24,12 @@
#include <string>
bool getInetAttributes(const std::string name, bool &automatic_start, std::string &address, std::string &netmask, std::string &broadcast, std::string &gateway);
bool getInetAttributes(const std::string &name, bool &automatic_start, std::string &address, std::string &netmask, std::string &broadcast, std::string &gateway);
bool addLoopbackDevice(const std::string name, const bool automatic_start);
bool addLoopbackDevice(const std::string &name, const bool automatic_start);
bool setStaticAttributes(const std::string name, const bool automatic_start, const std::string address, const std::string netmask, const std::string broadcast, const std::string gateway, bool wireless = false);
bool setStaticAttributes(const std::string &name, const bool automatic_start, const std::string &address, const std::string &netmask, const std::string &broadcast, const std::string &gateway, bool wireless = false);
bool setDhcpAttributes(const std::string name, const bool automatic_start, bool wireless = false);
bool setDhcpAttributes(const std::string &name, const bool automatic_start, bool wireless = false);
#endif /* __network_interfaces_h__ */