From: Andrea Claudi Date: Wed, 23 Aug 2023 17:30:00 +0000 (+0200) Subject: ss: make SELinux stub functions conformant to API definitions X-Git-Tag: v6.6.0~31^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61c6882ce21c1247c06cd61783120be0a2e2019c;p=thirdparty%2Fiproute2.git ss: make SELinux stub functions conformant to API definitions getfilecon() and security_get_initial_context() use the const qualifier for their first paramater in SELinux APIs. This commit adds the const qualifier to these functions, making them conformant to API definitions. Signed-off-by: Andrea Claudi Signed-off-by: David Ahern --- diff --git a/misc/ss.c b/misc/ss.c index 007cb3490..b3183630f 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -86,13 +86,13 @@ static int getpidcon(pid_t pid, char **context) return -1; } -static int getfilecon(char *path, char **context) +static int getfilecon(const char *path, char **context) { *context = NULL; return -1; } -static int security_get_initial_context(char *name, char **context) +static int security_get_initial_context(const char *name, char **context) { *context = NULL; return -1;