int failed;
};
-static int write_with_crlf(struct ostream *output, const unsigned char *data,
+static int write_with_crlf(struct ostream *output, const void *v_data,
size_t size)
{
+ const unsigned char *data = v_data;
size_t i, start;
i_assert(size <= SSIZE_T_MAX);
return size;
}
-static int write_with_lf(struct ostream *output, const unsigned char *data,
+static int write_with_lf(struct ostream *output, const void *v_data,
size_t size)
{
+ const unsigned char *data = v_data;
size_t i, start;
i_assert(size <= SSIZE_T_MAX);
struct istream *input, struct ostream *output,
header_callback_t *header_callback, void *context)
{
- int (*write_func)(struct ostream *, const unsigned char *, size_t);
+ int (*write_func)(struct ostream *, const void *, size_t);
const unsigned char *data;
size_t size;
ssize_t ret;
#include "mail-index.h"
#include "index-mail.h"
-typedef int write_func_t(struct ostream *, const unsigned char *, size_t);
+typedef int write_func_t(struct ostream *, const void *, size_t);
/* Return -1 = failure, 0 = don't write the header, 1 = write it */
typedef int header_callback_t(const unsigned char *name, size_t len,