summaryrefslogtreecommitdiff
path: root/openpcd/firmware/src/os/req_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'openpcd/firmware/src/os/req_ctx.c')
-rw-r--r--openpcd/firmware/src/os/req_ctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpcd/firmware/src/os/req_ctx.c b/openpcd/firmware/src/os/req_ctx.c
index 831d48e..99d248b 100644
--- a/openpcd/firmware/src/os/req_ctx.c
+++ b/openpcd/firmware/src/os/req_ctx.c
@@ -31,7 +31,7 @@ struct req_ctx *req_ctx_find_get(unsigned long old_state, unsigned long new_stat
u_int8_t req_ctx_num(struct req_ctx *ctx)
{
- return ((void *)ctx - (void *)&req_ctx[0])/sizeof(*ctx);
+ return ((char *)ctx - (char *)&req_ctx[0])/sizeof(*ctx);
}
void req_ctx_set_state(struct req_ctx *ctx, unsigned long new_state)
personal git repositories of Harald Welte. Your mileage may vary