sim: constify save_data()
authorMike Frysinger <vapier@gentoo.org>
Sat, 10 Apr 2010 08:00:58 +0000 (08:00 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 10 Apr 2010 08:00:58 +0000 (08:00 +0000)
commit709b3bb3ceb26fe1aa3a552acbaa63f80cdf8185
tree77ed5934843650ae920eaff4daee1f4832f1868a
parent3dd6860550ed99ae98766701eb29703c0fd3553e
sim: constify save_data()

The local save_data() function takes a pointer to a buffer and only uses it as
the source to the memcpy() function.  Since it is given const strings, GCC
likes to spit out warnings:
common/sim-trace.c: In function 'trace_prefix':
common/sim-trace.c:697: warning: passing argument 5 of 'save_data' discards
qualifiers from pointer target type

So I've committed this as obvious.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sim/common/ChangeLog
sim/common/sim-trace.c