aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dechesne <n-dechesne@ti.com>2012-10-19 16:15:40 +0800
committerAndy Green <andy.green@linaro.org>2012-10-19 16:15:40 +0800
commit1432265fd93818602fd98cd16e7297886bac390b (patch)
treeabf4a6e5114fec6daffb7325554d582c310a4211
parent341326e80f0b37c5a69bcb3f93e03b3cdd5335e2 (diff)
aepd: fix build issue on 32-bit machine
fix some wrong pointers arithmetic that was breaking the build on 32-bit machine (Pandaboard) With that build fix, i could run aepd webserver on Panda, and connect to it from my PC... Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
-rw-r--r--aepd/websocket-protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aepd/websocket-protocol.c b/aepd/websocket-protocol.c
index 6f11049..1da8e53 100644
--- a/aepd/websocket-protocol.c
+++ b/aepd/websocket-protocol.c
@@ -342,8 +342,8 @@ bad_caliper:
if ((p - &buf[LWS_SEND_BUFFER_PRE_PADDING]) > (sizeof(buf) - 2048)) {
- fprintf(stderr, "insane buffer usage %ld! pss->ringbuffer_tail = %ld, budget=%d aepd_shared->chans=%d\n",
- (p - &buf[LWS_SEND_BUFFER_PRE_PADDING]), pss->ringbuffer_tail, budget, aepd_shared->chans);
+ fprintf(stderr, "insane buffer usage %d! pss->ringbuffer_tail = %ld, budget=%d aepd_shared->chans=%d\n",
+ (int)(p - &buf[LWS_SEND_BUFFER_PRE_PADDING]), pss->ringbuffer_tail, budget, aepd_shared->chans);
budget = 0;
}
}