diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-23 19:12:20 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-23 19:12:20 +0000 |
commit | 8431ac369b2f12ac376798fb01748f52d327164a (patch) | |
tree | 383144a0a102038cf5fd1aaf780f9594ffb376f1 /src/process.c | |
parent | 5950b11a0f4903cd07c0068a428f499dd64bdd2b (diff) |
Converted many C-style casts to C++-style casts.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1788 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index 43ea0cf77..cb5bf7bd0 100644 --- a/src/process.c +++ b/src/process.c @@ -253,12 +253,12 @@ int split_buf(char *buf, const char ***argv, int colon_special) int argc; char *s; - *argv = (const char **)scalloc(sizeof(const char *) * argvsize, 1); + *argv = static_cast<const char **>(scalloc(sizeof(const char *) * argvsize, 1)); argc = 0; while (*buf) { if (argc == argvsize) { argvsize += 8; - *argv = (const char **)srealloc(*argv, sizeof(const char *) * argvsize); + *argv = static_cast<const char **>(srealloc(*argv, sizeof(const char *) * argvsize)); } if (*buf == ':') { (*argv)[argc++] = buf + 1; @@ -310,7 +310,7 @@ void process() * crash - in that case, we want to know what we crashed on. */ strscpy(buf, inbuf, sizeof(buf)); - doCleanBuffer((char *) buf); + doCleanBuffer(buf); /* Split the buffer into pieces. */ if (*buf == ':') { |