summaryrefslogtreecommitdiff
path: root/openpcd/firmware/src/os/req_ctx.c
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-09 04:42:17 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-09 04:42:17 +0000
commit83c18361d821819208e5d8024e8b557c359fdc7d (patch)
tree78bf53a2540e36207638c4735b116432299a998d /openpcd/firmware/src/os/req_ctx.c
parent3a98ae12852a75f2331571fafb148f55ee073969 (diff)
- cosmetic cleanup
git-svn-id: https://svn.openpcd.org:2342/trunk@146 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
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