summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-09-07 22:30:36 +0000
committerStef Walter <stef@memberwebs.com>2005-09-07 22:30:36 +0000
commit02d40ef5c7a97e1fbaddb32d62341b396f4a0297 (patch)
tree42a1da13ca57bba1f4637b50a00c7c305f85c7b4
parentcce8f01aae7df018612e863a1df4bf4b29b9d416 (diff)
Fix warnings with gcc 4.0
-rw-r--r--common/smtppass.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/smtppass.c b/common/smtppass.c
index 6a16db5..46c198d 100644
--- a/common/smtppass.c
+++ b/common/smtppass.c
@@ -1535,8 +1535,8 @@ int sp_done_data(spctx_t* ctx)
/* If we have to prepend the header, do it */
if(header[0] && g_state.header_prepend)
{
- if(spio_write_data_raw(ctx, &(ctx->server), (char*)header, header_len) == -1 ||
- spio_write_data_raw(ctx, &(ctx->server), CRLF, KL(CRLF)) == -1)
+ if(spio_write_data_raw(ctx, &(ctx->server), (unsigned char*)header, header_len) == -1 ||
+ spio_write_data_raw(ctx, &(ctx->server), (unsigned char*)CRLF, KL(CRLF)) == -1)
RETURN(-1);
had_header = 1;
}
@@ -1561,15 +1561,15 @@ int sp_done_data(spctx_t* ctx)
*/
if(is_blank_line(line))
{
- if(spio_write_data_raw(ctx, &(ctx->server), (char*)header, header_len) == -1 ||
- spio_write_data_raw(ctx, &(ctx->server), CRLF, KL(CRLF)) == -1)
+ if(spio_write_data_raw(ctx, &(ctx->server), (unsigned char*)header, header_len) == -1 ||
+ spio_write_data_raw(ctx, &(ctx->server), (unsigned char*)CRLF, KL(CRLF)) == -1)
RETURN(-1);
had_header = 1;
}
}
- if(spio_write_data_raw(ctx, &(ctx->server), line, rc) == -1)
+ if(spio_write_data_raw(ctx, &(ctx->server), (unsigned char*)line, rc) == -1)
RETURN(-1);
}