summaryrefslogtreecommitdiffstats
path: root/src/polypcore/protocol-esound.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-04-06 20:17:27 +0000
committerLennart Poettering <lennart@poettering.net>2006-04-06 20:17:27 +0000
commitac3d11f833ca7eb4ff3a1c0cb2e2cfd82da11813 (patch)
treee07c7cd38120c31fff5c4c9e41b40e80c0a2e36f /src/polypcore/protocol-esound.c
parentacb96c96fde93dcd87c6509e7c64b403caa44f30 (diff)
remove some GCC warnings introduced by improperly casting to (char*) instead of (const char*)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@642 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polypcore/protocol-esound.c')
-rw-r--r--src/polypcore/protocol-esound.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/polypcore/protocol-esound.c b/src/polypcore/protocol-esound.c
index 08b7c6f7..e9871178 100644
--- a/src/polypcore/protocol-esound.c
+++ b/src/polypcore/protocol-esound.c
@@ -297,7 +297,7 @@ static int esd_proto_connect(struct connection *c, PA_GCC_UNUSED esd_proto_t req
}
}
- data = (char*)data + ESD_KEY_LEN;
+ data = (const char*)data + ESD_KEY_LEN;
memcpy(&ekey, data, sizeof(uint32_t));
if (ekey == ESD_ENDIAN_KEY)
@@ -325,11 +325,11 @@ static int esd_proto_stream_play(struct connection *c, PA_GCC_UNUSED esd_proto_t
memcpy(&format, data, sizeof(int32_t));
format = MAYBE_INT32_SWAP(c->swap_byte_order, format);
- data = (char*)data + sizeof(int32_t);
+ data = (const char*)data + sizeof(int32_t);
- memcpy(&rate, (char*)data, sizeof(int32_t));
+ memcpy(&rate, data, sizeof(int32_t));
rate = MAYBE_INT32_SWAP(c->swap_byte_order, rate);
- data = (char*)data + sizeof(int32_t);
+ data = (const char*)data + sizeof(int32_t);
ss.rate = rate;
format_esd2native(format, c->swap_byte_order, &ss);
@@ -388,11 +388,11 @@ static int esd_proto_stream_record(struct connection *c, esd_proto_t request, co
memcpy(&format, data, sizeof(int32_t));
format = MAYBE_INT32_SWAP(c->swap_byte_order, format);
- data = (char*)data + sizeof(int32_t);
+ data = (const char*)data + sizeof(int32_t);
- memcpy(&rate, (char*)data, sizeof(int32_t));
+ memcpy(&rate, data, sizeof(int32_t));
rate = MAYBE_INT32_SWAP(c->swap_byte_order, rate);
- data = (char*)data + sizeof(int32_t);
+ data = (const char*)data + sizeof(int32_t);
ss.rate = rate;
format_esd2native(format, c->swap_byte_order, &ss);
@@ -633,15 +633,15 @@ static int esd_proto_stream_pan(struct connection *c, PA_GCC_UNUSED esd_proto_t
memcpy(&idx, data, sizeof(uint32_t));
idx = MAYBE_UINT32_SWAP(c->swap_byte_order, idx) - 1;
- data = (char*)data + sizeof(uint32_t);
+ data = (const char*)data + sizeof(uint32_t);
memcpy(&lvolume, data, sizeof(uint32_t));
lvolume = MAYBE_UINT32_SWAP(c->swap_byte_order, lvolume);
- data = (char*)data + sizeof(uint32_t);
+ data = (const char*)data + sizeof(uint32_t);
memcpy(&rvolume, data, sizeof(uint32_t));
rvolume = MAYBE_UINT32_SWAP(c->swap_byte_order, rvolume);
- data = (char*)data + sizeof(uint32_t);
+ data = (const char*)data + sizeof(uint32_t);
if ((conn = pa_idxset_get_by_index(c->protocol->connections, idx))) {
assert(conn->sink_input);
@@ -667,11 +667,11 @@ static int esd_proto_sample_cache(struct connection *c, PA_GCC_UNUSED esd_proto_
memcpy(&format, data, sizeof(int32_t));
format = MAYBE_INT32_SWAP(c->swap_byte_order, format);
- data = (char*)data + sizeof(int32_t);
+ data = (const char*)data + sizeof(int32_t);
- memcpy(&rate, (char*)data + sizeof(int32_t), sizeof(int32_t));
+ memcpy(&rate, (const char*)data + sizeof(int32_t), sizeof(int32_t));
rate = MAYBE_INT32_SWAP(c->swap_byte_order, rate);
- data = (char*)data + sizeof(int32_t);
+ data = (const char*)data + sizeof(int32_t);
ss.rate = rate;
format_esd2native(format, c->swap_byte_order, &ss);