summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6f2efb)
raw | patch | inline | side by side (parent: f6f2efb)
author | pjrm <pjrm@users.sourceforge.net> | |
Thu, 5 Jun 2008 06:34:50 +0000 (06:34 +0000) | ||
committer | pjrm <pjrm@users.sourceforge.net> | |
Thu, 5 Jun 2008 06:34:50 +0000 (06:34 +0000) |
src/pedro/pedrodom.cpp | patch | blob | history | |
src/pedro/pedrodom.h | patch | blob | history | |
src/pedro/pedroxmpp.cpp | patch | blob | history |
diff --git a/src/pedro/pedrodom.cpp b/src/pedro/pedrodom.cpp
index 7a66a50d5f3804e68eb6d7283273029f54e059f7..1131e66b8272cdc383092bc03b3acae71712ec84 100644 (file)
--- a/src/pedro/pedrodom.cpp
+++ b/src/pedro/pedrodom.cpp
}
-void Parser::error(char *fmt, ...)
+void Parser::error(char const *fmt, ...)
{
long lineNr;
long colNr;
diff --git a/src/pedro/pedrodom.h b/src/pedro/pedrodom.h
index e82115ede0d781c540b7a78e8cdf6022b482f7fa..91ad21da20c717f45a2eb538b5c07b714460eb7e 100644 (file)
--- a/src/pedro/pedrodom.h
+++ b/src/pedro/pedrodom.h
void getLineAndColumn(long pos, long *lineNr, long *colNr);
- void error(char *fmt, ...) G_GNUC_PRINTF(2,3);
+ void error(char const *fmt, ...) G_GNUC_PRINTF(2,3);
int peek(long pos);
index 2b871900241f41249073c21e1ac1ed1ce84bf24a..3baeeee0636e518bb79ae73f153e4a706368c39d 100644 (file)
--- a/src/pedro/pedroxmpp.cpp
+++ b/src/pedro/pedroxmpp.cpp
"IQ set does not contain a 'from' address because "
"the entity is not registered with the server");
}
- error("%s",(char *)errMsg.c_str());
+ error("%s", errMsg.c_str());
}
else if (id.find("regcancel") != id.npos)
"IQ set does not contain a 'from' address because "
"the entity is not registered with the server");
}
- error("%s",(char *)errMsg.c_str());
+ error("%s", errMsg.c_str());
}
return true;
{
errMsg.append("some registration information was not provided");
}
- error("%s",(char *)errMsg.c_str());
+ error("%s", errMsg.c_str());
delete elem;
return false;
}