Avoid some gcc 4.3 warnings about deprecated string conversions

This commit is contained in:
Jouni Malinen 2008-10-14 07:39:51 +03:00
parent a11c90a64a
commit 8de4f2e9ba

View file

@ -305,7 +305,7 @@ void NetworkConfig::addNetwork()
snprintf(phase2, sizeof(phase2), "auth=%s",
inner.toAscii().constData());
} else if (eap.compare("FAST") == 0) {
char *provisioning = NULL;
const char *provisioning = NULL;
if (inner.startsWith("EAP-")) {
snprintf(phase2, sizeof(phase2), "auth=%s",
inner.right(inner.size() - 4).