Skip to content

Commit

Permalink
Fix attrib that is only for pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
jcpunk committed Jul 24, 2024
1 parent 0ffeb45 commit 307da81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/C/kcron_caps.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static void print_cap_error(const char *mode, const cap_value_t expected_cap[],
}
}

int enable_capabilities(const cap_value_t expected_cap[], const int num_caps) __attribute__((nonnull(1))) __attribute__((warn_unused_result)) __attribute__((flatten)) __attribute__((hot)) __attribute__((access(read_only, 1))) __attribute__((access(read_only, 2)));
int enable_capabilities(const cap_value_t expected_cap[], const int num_caps) __attribute__((nonnull(1))) __attribute__((warn_unused_result)) __attribute__((flatten)) __attribute__((hot)) __attribute__((access(read_only, 1)));
int enable_capabilities(const cap_value_t expected_cap[], const int num_caps) {
cap_t capabilities = cap_get_proc();

Expand Down

0 comments on commit 307da81

Please sign in to comment.