diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
commit | 792b705757dc01a9b12c3bb4f0b8855c25dbde07 (patch) | |
tree | fac1641c2c03e444c1a45be356a6f69e56f1d8b7 /src/tools/anopesmtp.c | |
parent | c32c3c99a1e1d395c88e901de200c21b9ca1e84f (diff) |
Remove some older protocol modules, mark a number of others obsolete. Some may be rescued later on.
Fix problems with anopesmtp and db-merger tool, mark epona2anope obsolete.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1203 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/tools/anopesmtp.c')
-rw-r--r-- | src/tools/anopesmtp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/anopesmtp.c b/src/tools/anopesmtp.c index 4ff0c6fcf..f5981a851 100644 --- a/src/tools/anopesmtp.c +++ b/src/tools/anopesmtp.c @@ -181,7 +181,7 @@ char *strip(char *buf) */ char *lftocrlf(char *buf) { - char *result = malloc(strlen(buf) + 2); + char *result = (char *)malloc(strlen(buf) + 2); strip(buf); strcpy(result, buf); strcat(result, "\r\n"); @@ -193,7 +193,7 @@ char *lftocrlf(char *buf) /* Add a header to the list */ void smtp_add_header(char *header) { - struct smtp_header *head = malloc(sizeof(struct smtp_header)); + struct smtp_header *head = (struct smtp_header *)malloc(sizeof(struct smtp_header)); head->header = lftocrlf(header); head->next = NULL; @@ -276,7 +276,7 @@ void smtp_add_body_line(char *line) { struct smtp_body_line *body; - body = malloc(sizeof(struct smtp_body_line)); + body = (struct smtp_body_line *)malloc(sizeof(struct smtp_body_line)); body->line = lftocrlf(line); body->next = NULL; |