You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by "Cullum, Steve" <st...@eds.com> on 2005/10/14 15:04:39 UTC

[C++] Xkclient.cpp fails to compile with Visual studio .net 2003

Inside XKClient.cpp line 1742

The variable "i" is used twice..once declared as an "int", once declared
as a "char".

Simple fix................;)


 for (int i = 0; i < msg->getUseKeyWithSize() ; ++i) {

		XKMSUseKeyWith * ukw = msg->getUseKeyWithItem(i);
		levelSet(level+2);
		char * a = XMLString::transcode(ukw->getApplication());
		char * i = XMLString::transcode(ukw->getIdentifier());
		cout << "Application : \"" << a << "\"\n";
		levelSet(level+2);
		cout << "Identifier  : \"" << i << "\"" << endl;
		XSEC_RELEASE_XMLCH(a);
		XSEC_RELEASE_XMLCH(i);

	}