mirror of
https://github.com/anope/anope.git
synced 2026-07-04 07:43:12 +02:00
Removed some unnecessary casts, used C++-style casts over C-style casts, fixed a few warnings (one possibly fatal one).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2655 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -262,7 +262,7 @@ int split_buf(char *buf, const char ***argv, int colon_special)
|
||||
}
|
||||
if (*buf == ':') {
|
||||
(*argv)[argc++] = buf + 1;
|
||||
buf = (char *)""; // XXX: unsafe cast.
|
||||
buf = const_cast<char *>(""); // XXX: unsafe cast.
|
||||
} else {
|
||||
s = strpbrk(buf, " ");
|
||||
if (s) {
|
||||
|
||||
Reference in New Issue
Block a user