megaglest-source
megaglest-source copied to clipboard
Since the string from strerror should never be modified, use const.
This is just a very minor issue.
megaglest contains some calls to strerror where the result is assigned to a char *. However, according to the strerror specification, the string returned by strerror should never be changed, so I think it would be better to use const char * instead.
Philipp
I think it's a good idea to use const and constexpr wherever possible, both as a nod to other developers and a safety net for vars which shouldn't change :).