git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@642
fefdeb5f-60dc-0310-8127-
8f9354f1896f
- data = (char*)data + ESD_KEY_LEN;
+ data = (const char*)data + ESD_KEY_LEN;
memcpy(&ekey, data, sizeof(uint32_t));
if (ekey == ESD_ENDIAN_KEY)
memcpy(&ekey, data, sizeof(uint32_t));
if (ekey == ESD_ENDIAN_KEY)
memcpy(&format, data, sizeof(int32_t));
format = MAYBE_INT32_SWAP(c->swap_byte_order, format);
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);
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);
ss.rate = rate;
format_esd2native(format, c->swap_byte_order, &ss);
memcpy(&format, data, sizeof(int32_t));
format = MAYBE_INT32_SWAP(c->swap_byte_order, format);
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);
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);
ss.rate = rate;
format_esd2native(format, c->swap_byte_order, &ss);
memcpy(&idx, data, sizeof(uint32_t));
idx = MAYBE_UINT32_SWAP(c->swap_byte_order, idx) - 1;
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);
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);
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);
if ((conn = pa_idxset_get_by_index(c->protocol->connections, idx))) {
assert(conn->sink_input);
memcpy(&format, data, sizeof(int32_t));
format = MAYBE_INT32_SWAP(c->swap_byte_order, format);
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);
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);
ss.rate = rate;
format_esd2native(format, c->swap_byte_order, &ss);