From 02d40ef5c7a97e1fbaddb32d62341b396f4a0297 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 7 Sep 2005 22:30:36 +0000 Subject: Fix warnings with gcc 4.0 --- common/smtppass.c | 10 +++++----- 1 file 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); } -- cgit v1.2.3