Skip to content

Commit

Permalink
Merge pull request #56 from fermitools/drop-more-returns
Browse files Browse the repository at this point in the history
Technically these are void, but drop them anyway
  • Loading branch information
jcpunk authored May 29, 2024
2 parents 021304c + 557d262 commit 8a60846
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/C/kcron_caps.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int enable_capabilities(const cap_value_t expected_cap[], const int num_caps) {
DTRACE_PROBE1(__PROGRAM_NAME, "cap-set-flag-permitted", 1);
(void)cap_free(capabilities);
/* error */
print_cap_error("PERMITTED", expected_cap, num_caps);
(void)print_cap_error("PERMITTED", expected_cap, num_caps);
exit(EXIT_FAILURE);
}
DTRACE_PROBE1(__PROGRAM_NAME, "cap-set-flag-permitted", 0);
Expand All @@ -99,7 +99,7 @@ int enable_capabilities(const cap_value_t expected_cap[], const int num_caps) {
DTRACE_PROBE1(__PROGRAM_NAME, "cap-set-flag-effective", 1);
(void)cap_free(capabilities);
/* error */
print_cap_error("ACTIVE", expected_cap, num_caps);
(void)print_cap_error("ACTIVE", expected_cap, num_caps);
exit(EXIT_FAILURE);
}
DTRACE_PROBE1(__PROGRAM_NAME, "cap-set-flag-effective", 0);
Expand All @@ -108,7 +108,7 @@ int enable_capabilities(const cap_value_t expected_cap[], const int num_caps) {
DTRACE_PROBE1(__PROGRAM_NAME, "cap-set-active", 1);
(void)cap_free(capabilities);
/* error */
print_cap_error("ACTIVE", expected_cap, num_caps);
(void)print_cap_error("ACTIVE", expected_cap, num_caps);
exit(EXIT_FAILURE);
}
DTRACE_PROBE1(__PROGRAM_NAME, "cap-set-active", 0);
Expand Down

0 comments on commit 8a60846

Please sign in to comment.