]> git.sur5r.net Git - openocd/commit
binarybuffer: Remove unnecessary cast and fix hidden "bug"
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 28 Sep 2013 21:01:07 +0000 (23:01 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Thu, 31 Oct 2013 20:45:26 +0000 (20:45 +0000)
commit01298ca2c839965f54d6d6a7b8ac00fe77190116
treefc8a0697e378b58270f043d865cc5154fd5f72fe
parent4935709484828f9ce6e12c31957c78c6c1019d3e
binarybuffer: Remove unnecessary cast and fix hidden "bug"

Because of the cast, the const decoration on the parameter provided no
guarantee against modification since it was silently discarded.

Change-Id: Ib83ade955e1a61ee2175c690620437b5e19cbb6a
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1776
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/helper/binarybuffer.c
src/helper/binarybuffer.h