sim: add const markings to env string
authorMike Frysinger <vapier@gentoo.org>
Sat, 10 Apr 2010 07:35:35 +0000 (07:35 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 10 Apr 2010 07:35:35 +0000 (07:35 +0000)
commit3dd6860550ed99ae98766701eb29703c0fd3553e
tree1a87e867efba198bc87f88e1dbf723dfcd0577dd
parentfcfd64c2cc074718773e6042aa0e36c8c685ce48
sim: add const markings to env string

The sim-options code assigns a const string to "char *" in decoding the
current environment settings, and only uses it to pass to a printf.  GCC
outputs the warnings:
common/sim-options.c: In function 'standard_option_handler':
common/sim-options.c:271: warning: assignment discards qualifiers from pointer
target type
common/sim-options.c:272: warning: assignment discards qualifiers from pointer
target type
common/sim-options.c:273: warning: assignment 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-options.c