Commit 3314353c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix missing constification in cast.

Spotted by:	GCC
Missed by:	LLVM, FlexeLint
parent c4d77547
......@@ -236,12 +236,12 @@ ban_add_lump(const struct ban *b, const void *p, uint32_t len)
static const void *
ban_get_lump(const uint8_t **bs)
{
void *r;
const void *r;
unsigned ln;
ln = vbe32dec(*bs);
*bs += 4;
r = (void*)*bs;
r = (const void*)*bs;
*bs += ln;
return (r);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment