o When calling the syscall, use &cap instead of cap. Apparently this
error was introduced during the merge; fixing it corrects a (correct) warning about types. Obtained from: TrustedBSD Project
This commit is contained in:
parent
b00446f08a
commit
5d08343440
|
@ -45,7 +45,7 @@ cap_get_proc(void)
|
||||||
if (!cap)
|
if (!cap)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
||||||
error = __cap_get_proc(&cap);
|
error = __cap_get_proc(cap);
|
||||||
if (error) {
|
if (error) {
|
||||||
cap_free(cap);
|
cap_free(cap);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
|
@ -45,7 +45,7 @@ cap_get_proc(void)
|
||||||
if (!cap)
|
if (!cap)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
||||||
error = __cap_get_proc(&cap);
|
error = __cap_get_proc(cap);
|
||||||
if (error) {
|
if (error) {
|
||||||
cap_free(cap);
|
cap_free(cap);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
Loading…
Reference in New Issue