summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2018-05-10 12:31:57 -0400
committerPaul Moore <paul@paul-moore.com>2018-05-10 12:31:57 -0400
commit3070d62f86a0cf7b62f5bd9024c695abab9dd877 (patch)
tree4ed7c5331054ee2c1565890d611bf3287febe541
parent84c703f47a1863b9af8bb61f376b53878f8c1a03 (diff)
downloadlibseccomp-3070d62f86a0cf7b62f5bd9024c695abab9dd877.tar.gz
api: seccomp_api_get() doesn't need to be marked as const
Reported-by: Marek <deadbeef@popcount.org> Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r--include/seccomp.h.in2
-rw-r--r--src/api.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/seccomp.h.in b/include/seccomp.h.in
index 2a789d6..03973a4 100644
--- a/include/seccomp.h.in
+++ b/include/seccomp.h.in
@@ -299,7 +299,7 @@ const struct scmp_version *seccomp_version(void);
* support for the SCMP_ACT_LOG action
*
*/
-const unsigned int seccomp_api_get(void);
+unsigned int seccomp_api_get(void);
/**
* Set the library's level of API support
diff --git a/src/api.c b/src/api.c
index e1a5e8b..8159abe 100644
--- a/src/api.c
+++ b/src/api.c
@@ -120,7 +120,7 @@ API const struct scmp_version *seccomp_version(void)
}
/* NOTE - function header comment in include/seccomp.h */
-API const unsigned int seccomp_api_get(void)
+API unsigned int seccomp_api_get(void)
{
/* update the api level, if needed */
return _seccomp_api_update();