Re: [Linuxptp-devel] [PATCH RFC 02/30] config: Constify the public interface.

2020-02-18 Thread Jacob Keller
On 2/11/2020 6:03 AM, Richard Cochran wrote: > The two methods, config_create_interface and config_read, never modify the > strings passed in. This patch adds the const keyword to ensure these > functions stay that way. > Makes sense. Using const in more places like this is great! It helps

[Linuxptp-devel] [PATCH RFC 02/30] config: Constify the public interface.

2020-02-11 Thread Richard Cochran
The two methods, config_create_interface and config_read, never modify the strings passed in. This patch adds the const keyword to ensure these functions stay that way. Signed-off-by: Richard Cochran --- config.c | 4 ++-- config.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)