mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 21:17:52 +00:00
Compile fix for netconf.
This commit is contained in:
parent
ce14ba9004
commit
f7bf9da881
@ -167,7 +167,7 @@ int main(int argc,char **argv)
|
|||||||
q << "SELECT DISTINCT LOWER(HEX(Node_id)) AS Node_id,LOWER(HEX(Network_id)) AS Network_id FROM QNetworkConfigRefresh";
|
q << "SELECT DISTINCT LOWER(HEX(Node_id)) AS Node_id,LOWER(HEX(Network_id)) AS Network_id FROM QNetworkConfigRefresh";
|
||||||
StoreQueryResult rs = q.store();
|
StoreQueryResult rs = q.store();
|
||||||
for(unsigned long i=0;i<rs.num_rows();++i) {
|
for(unsigned long i=0;i<rs.num_rows();++i) {
|
||||||
std::string &nwids = to[rs[i]["Node_id"]];
|
std::string &nwids = to[rs[i]["Node_id"].c_str()];
|
||||||
if (nwids.length())
|
if (nwids.length())
|
||||||
nwids.push_back(',');
|
nwids.push_back(',');
|
||||||
nwids.append(rs[i]["Network_id"]);
|
nwids.append(rs[i]["Network_id"]);
|
||||||
|
Loading…
Reference in New Issue
Block a user