accel-ppp icon indicating copy to clipboard operation
accel-ppp copied to clipboard

Ensure const correctness when reading the configuration

Open laarmen opened this issue 4 years ago • 0 comments

As they say, "shared mutable state is the root of all evil". This patch series clearly marks the triton code as the owner of the configuration objects, making their content internal. Most of the changes are simply changing the client code to use the proper type, with the exception of pppd_compat.

There, the changes are a bit more involved, as the const char * pointers end up being fed to an API that takes in char * arguments for historical reasons. Detailed explanations can be found in the commit logs.

laarmen avatar Jun 23 '20 10:06 laarmen