summaryrefslogtreecommitdiff
path: root/common
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
commit40fad4a950ddda4e2f94d0f74c4503a63c838f4d (patch)
tree6ac8f8d2339925f7e333fea65143aa565ed0baf0 /common
parent6775c971eedab4c61a95c9580a5fafcbff67566c (diff)
Fix warnings with gcc 4.0
Diffstat (limited to 'common')
-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);
}