Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xcap
libcap
Commits
a5415bd8
Commit
a5415bd8
authored
Nov 17, 2015
by
Josh Kunz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make cap_type_opts argument to register_type const
parent
19861374
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/libcap.h
include/libcap.h
+1
-1
src/common/cap.c
src/common/cap.c
+1
-1
No files found.
include/libcap.h
View file @
a5415bd8
...
...
@@ -97,7 +97,7 @@ void cap_fini(void);
* -EADDRINUSE. If there are no types remaining or you exceed
* CAP_TYPE_MAX, this returns -ENOMEM .
*/
cap_type_t
cap_register_type
(
cap_type_t
type
,
struct
cap_type_ops
*
ops
);
cap_type_t
cap_register_type
(
cap_type_t
type
,
const
struct
cap_type_ops
*
ops
);
/**
* Revoke all derived capabilities.
*
...
...
src/common/cap.c
View file @
a5415bd8
...
...
@@ -54,7 +54,7 @@ void cap_fini(void)
cap_cache_destroy
(
cdt_cache
.
cdt_root_cache
);
}
cap_type_t
cap_register_type
(
cap_type_t
type
,
struct
cap_type_ops
*
ops
)
cap_type_t
cap_register_type
(
cap_type_t
type
,
const
struct
cap_type_ops
*
ops
)
{
int
i
,
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment