From 709b3bb3ceb26fe1aa3a552acbaa63f80cdf8185 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 10 Apr 2010 08:00:58 +0000 Subject: 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 --- sim/common/sim-trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/common/sim-trace.c') diff --git a/sim/common/sim-trace.c b/sim/common/sim-trace.c index 478cbfa..358a01d 100644 --- a/sim/common/sim-trace.c +++ b/sim/common/sim-trace.c @@ -513,7 +513,7 @@ save_data (SIM_DESC sd, TRACE_DATA *data, data_fmt fmt, long size, - void *buf) + const void *buf) { int i = TRACE_INPUT_IDX (data); if (i == sizeof (TRACE_INPUT_FMT (data))) -- cgit v1.1