diff options
author | robbeh <robbeh@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-13 21:38:48 +0000 |
---|---|---|
committer | robbeh <robbeh@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-13 21:38:48 +0000 |
commit | 6321db16cf36fff049a0614ae632d57711b063e0 (patch) | |
tree | 143eaa28190a40b14866ab9c2824d517abfe3ae3 /src/mail.c | |
parent | cb29211634780a2f1680e2def67c58e35ef6b11f (diff) |
Fixed a few annoying compile warnings
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1664 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/mail.c')
-rw-r--r-- | src/mail.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mail.c b/src/mail.c index 408243cc4..0d66086c2 100644 --- a/src/mail.c +++ b/src/mail.c @@ -6,9 +6,9 @@ * Please read COPYING and README for further details. * * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - * - * $Id$ + * Based on the original code of Services by Andy Church. + * + * $Id$ * */ @@ -221,7 +221,7 @@ void MailReset(User * u, NickCore * nc) /** * Checks whether we have a valid, common e-mail address. - * This is NOT entirely RFC compliant, and won't be so, because I said + * This is NOT entirely RFC compliant, and won't be so, because I said * *common* cases. ;) It is very unlikely that e-mail addresses that * are really being used will fail the check. * @@ -231,7 +231,7 @@ void MailReset(User * u, NickCore * nc) */ int MailValidate(const char *email) { - int i, j, has_period = 0, len; + int has_period = 0, len; char copy[BUFSIZE], *domain; static char specials[] = @@ -254,20 +254,20 @@ int MailValidate(const char *email) return 0; /* Check for forbidden characters in the name */ - for (i = 0; i < strlen(copy); i++) { + for (unsigned int i = 0; i < strlen(copy); i++) { if (copy[i] <= 31 || copy[i] >= 127) return 0; - for (j = 0; j < 13; j++) + for (unsigned int j = 0; j < 13; j++) if (copy[i] == specials[j]) return 0; } /* Check for forbidden characters in the domain, and if it seems to be valid. */ - for (i = 0; i < (len = strlen(domain)); i++) { + for (int i = 0; i < (len = strlen(domain)); i++) { if (domain[i] <= 31 || domain[i] >= 127) return 0; - for (j = 0; j < 13; j++) + for (unsigned int j = 0; j < 13; j++) if (domain[i] == specials[j]) return 0; if (domain[i] == '.') { |