diff options
| author | Adam <Adam@anope.org> | 2013-09-27 15:54:21 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-09-27 19:11:02 -0400 |
| commit | b319fb089c144312ab9141d6f6469d50d9d7a1ea (patch) | |
| tree | b6da2ec3a23ff7f2da9ae6ce35d591faa6f57d72 /modules/commands/ns_cert.cpp | |
| parent | 17196887ad1e6f9886c6cd3109bd8ede16ae7343 (diff) | |
Fix compile warnings and errors found by clang
Diffstat (limited to 'modules/commands/ns_cert.cpp')
| -rw-r--r-- | modules/commands/ns_cert.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/commands/ns_cert.cpp b/modules/commands/ns_cert.cpp index c8274f4d6..a4a335fa0 100644 --- a/modules/commands/ns_cert.cpp +++ b/modules/commands/ns_cert.cpp @@ -104,13 +104,13 @@ struct NSCertListImpl : NSCertList if (s->GetSerializableType()->GetName() != "NickCore") return; - const NickCore *nc = anope_dynamic_static_cast<const NickCore *>(e); - NSCertList *certs = this->Get(nc); - if (certs == NULL || !certs->GetCertCount()) + const NickCore *n = anope_dynamic_static_cast<const NickCore *>(e); + NSCertList *c = this->Get(n); + if (c == NULL || !c->GetCertCount()) return; - for (unsigned i = 0; i < certs->GetCertCount(); ++i) - data["cert"] << certs->GetCert(i) << " "; + for (unsigned i = 0; i < c->GetCertCount(); ++i) + data["cert"] << c->GetCert(i) << " "; } void ExtensibleUnserialize(Extensible *e, Serializable *s, Serialize::Data &data) anope_override @@ -118,15 +118,15 @@ struct NSCertListImpl : NSCertList if (s->GetSerializableType()->GetName() != "NickCore") return; - NickCore *nc = anope_dynamic_static_cast<NickCore *>(e); - NSCertListImpl *certs = this->Require(nc); + NickCore *n = anope_dynamic_static_cast<NickCore *>(e); + NSCertListImpl *c = this->Require(n); Anope::string buf; data["cert"] >> buf; spacesepstream sep(buf); - certs->certs.clear(); + c->certs.clear(); while (sep.GetToken(buf)) - certs->certs.push_back(buf); + c->certs.push_back(buf); } }; }; |
