nmdb: Cast to avoid known const violation warnings in tdb and bdb backends
commitba6c6296958c9e4dc89bed26bf7d83f184a30212
authorAlberto Bertogli <albertito@blitiri.com.ar>
Sun, 25 Apr 2010 06:43:13 +0000 (25 03:43 -0300)
committerAlberto Bertogli <albertito@blitiri.com.ar>
Sun, 25 Apr 2010 06:43:13 +0000 (25 03:43 -0300)
treed56e3af86174851ead93a3b8186b1ddb48225d9e
parentfe6f45bb8e5916df6787a99d58d797c74d42fb08
nmdb: Cast to avoid known const violation warnings in tdb and bdb backends

tdb and bdb APIs make it difficult to maintain const warranties, although
they do not modify the buffers.

This causes the compiler to emit a warning, which is distracting since it
is a known but harmless issue.

This patch adds casts to avoid the warnings. It was tested with gcc 4.4.3
and clang 1.1 (svn rev 98154).

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
nmdb/be-bdb.c
nmdb/be-tdb.c