summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Jager <t.jager@gmx.de>2014-11-06 15:08:05 +0100
committerTorsten Jager <t.jager@gmx.de>2014-11-06 15:08:05 +0100
commit92f9e61183333a9dc4dd141f94ae5fb6de01e0bb (patch)
treede2929a1b528fd7da758bc14ae4fd3bb2f5c7b33
parent0089030586afb85aa4581660e597fffe8c6b73ef (diff)
downloadxine-lib-92f9e61183333a9dc4dd141f94ae5fb6de01e0bb.tar.gz
xine-lib-92f9e61183333a9dc4dd141f94ae5fb6de01e0bb.tar.bz2
pnm: silence warnings.
Untested - I have no PNM server.
-rw-r--r--src/input/pnm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input/pnm.c b/src/input/pnm.c
index 117a1fed3..0c29b016e 100644
--- a/src/input/pnm.c
+++ b/src/input/pnm.c
@@ -613,7 +613,7 @@ static int pnm_get_stream_chunk(pnm_t *p) {
/* a server message */
if (p->buffer[0] == 'X')
{
- int size=be2me_16(*(uint16_t*)(&p->buffer[1]));
+ int size=_X_BE_16 (&p->buffer[1]);
_x_io_tcp_read (p->stream, p->s, &p->buffer[8], size-5);
p->buffer[size+3]=0;
@@ -653,8 +653,8 @@ static int pnm_get_stream_chunk(pnm_t *p) {
}
/* check offsets */
- fof1=be2me_16(*(uint16_t*)(&p->buffer[1]));
- fof2=be2me_16(*(uint16_t*)(&p->buffer[3]));
+ fof1=_X_BE_16 (&p->buffer[1]);
+ fof2=_X_BE_16 (&p->buffer[3]);
if (fof1 != fof2)
{
xprintf(p->stream->xine, XINE_VERBOSITY_DEBUG,
@@ -663,7 +663,7 @@ static int pnm_get_stream_chunk(pnm_t *p) {
}
/* get first index */
- p->seq_current[0]=be2me_16(*(uint16_t*)(&p->buffer[5]));
+ p->seq_current[0]=_X_BE_16 (&p->buffer[5]);
/* now read the rest of stream chunk */
n = _x_io_tcp_read (p->stream, p->s, (char*)&p->recv[5], fof1-5);
@@ -673,7 +673,7 @@ static int pnm_get_stream_chunk(pnm_t *p) {
p->seq_current[1]=p->recv[5];
/* get timestamp */
- p->ts_current=be2me_32(*(uint32_t*)(&p->recv[6]));
+ p->ts_current=_X_BE_32 (&p->recv[6]);
/* get stream number */
stream=pnm_calc_stream(p);