svn commit: r277860 - head/usr.sbin/sa

John-Mark Gurney jmg at funkthat.com
Thu Jan 29 08:23:53 UTC 2015


Dimitry Andric wrote this message on Wed, Jan 28, 2015 at 22:22 +0000:
>   Replace the VERSION_KEY define with a writable char array, so no const
>   qualifier needs to be dropped anymore.

You do realize that you should juse use __DECONST for this instead?

This moves the data from .rodata into .data making it writable, and
also means that bad programs could end up stop working, instead of
faulting when someone tries to change the version string...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the svn-src-all mailing list