diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-23 07:38:22 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-23 07:38:22 +0000 |
commit | e802b6dfe8ef0105389b69e17e7faa2e4c92d756 (patch) | |
tree | 7556cf902a0f943cb4bbc3b47b89fb13797ad4e1 /src/process.c | |
parent | 40ec6f0854c2210e670199f701636d9d78ffa6c0 (diff) |
Some more Windows fixes, both in CMake and in the code itself. (I don't like the const casting for the latter, but it's only until we get rid of use of strchr)
Added CPack setup to automate generation of source package for *nix and NSIS installer for Windows.
Some other minor CMake fixes.
Converted docs/README and docs/WIN32.txt from Unix linefeeds to DOS linefeeds so they show up right in Notepad under Windows.
Added small fix for Visual Studio 2008, CMake doesn't detect the Express version correctly and it must be explicitly defined.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1861 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/process.c b/src/process.c index cb5bf7bd0..4c61ed192 100644 --- a/src/process.c +++ b/src/process.c @@ -46,9 +46,9 @@ void add_ignore(const char *nick, time_t delta) snprintf(tmp, sizeof(tmp), "*!*@%s", u->host); mask = sstrdup(tmp); /* Determine whether we get a nick or a mask. */ - } else if ((host = strchr(nick, '@'))) { + } else if ((host = const_cast<char *>(strchr(nick, '@')))) { /* Check whether we have a nick too.. */ - if ((user = strchr(nick, '!'))) { + if ((user = const_cast<char *>(strchr(nick, '!')))) { /* this should never happen */ if (user > host) return; @@ -121,8 +121,8 @@ IgnoreData *get_ignore(const char *nick) break; } else { /* We didn't get a user.. generate a valid mask. */ - if ((host = strchr(nick, '@'))) { - if ((user = strchr(nick, '!'))) { + if ((host = const_cast<char *>(strchr(nick, '@')))) { + if ((user = const_cast<char *>(strchr(nick, '!')))) { /* this should never happen */ if (user > host) return NULL; @@ -177,9 +177,9 @@ int delete_ignore(const char *nick) if ((u = finduser(nick))) { snprintf(tmp, sizeof(tmp), "*!*@%s", u->host); /* Determine whether we get a nick or a mask. */ - } else if ((host = strchr(nick, '@'))) { + } else if ((host = const_cast<char *>(strchr(nick, '@')))) { /* Check whether we have a nick too.. */ - if ((user = strchr(nick, '!'))) { + if ((user = const_cast<char *>(strchr(nick, '!')))) { /* this should never happen */ if (user > host) return 0; |