aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/raop_output_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-08-31 08:29:46 +0200
committerMax Kellermann <max@duempel.org>2011-08-31 08:30:26 +0200
commit7f3dc5f0406867bd1b4af57df76923f9f1bfaa6f (patch)
tree6d095a4d24435d55bc07c2fd85897469eabaeb52 /src/output/raop_output_plugin.c
parentdd0798a317545c0dc3242e8982050f4ea36b11e5 (diff)
downloadmpd-7f3dc5f0406867bd1b4af57df76923f9f1bfaa6f.tar.gz
mpd-7f3dc5f0406867bd1b4af57df76923f9f1bfaa6f.tar.xz
mpd-7f3dc5f0406867bd1b4af57df76923f9f1bfaa6f.zip
output/raop: cast sendto() parameter to void pointer
Fix compilation on mingw32.
Diffstat (limited to 'src/output/raop_output_plugin.c')
-rw-r--r--src/output/raop_output_plugin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/output/raop_output_plugin.c b/src/output/raop_output_plugin.c
index 6fd5edeac..37bdee513 100644
--- a/src/output/raop_output_plugin.c
+++ b/src/output/raop_output_plugin.c
@@ -346,7 +346,9 @@ send_control_command(struct control_data *ctrl, struct raop_data *rd,
fill_time_buffer_with_time(buf + 8, &ctrl_time);
fill_int(buf + 16, state->rtptime);
- num_bytes = sendto(ctrl->fd, buf, sizeof(buf), 0, (struct sockaddr *) &rd->ctrl_addr, sizeof(rd->ctrl_addr));
+ num_bytes = sendto(ctrl->fd, (const void *)buf, sizeof(buf), 0,
+ (struct sockaddr *)&rd->ctrl_addr,
+ sizeof(rd->ctrl_addr));
if (num_bytes < 0) {
g_set_error(error_r, raop_output_quark(), errno,
"Unable to send control command: %s",
@@ -635,7 +637,7 @@ send_audio_data(int fd, GError **error_r)
rd->started = true;
raop_session->data[1] = 0xe0;
}
- i = sendto(fd, raop_session->data + raop_session->wblk_wsize,
+ i = sendto(fd, (const void *)(raop_session->data + raop_session->wblk_wsize),
raop_session->wblk_remsize, 0, (struct sockaddr *) &rd->data_addr,
sizeof(rd->data_addr));
if (i < 0) {