Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8a60846

Browse files
authoredMay 29, 2024··
Merge pull request #56 from fermitools/drop-more-returns
Technically these are void, but drop them anyway
2 parents 021304c + 557d262 commit 8a60846

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/C/kcron_caps.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ int enable_capabilities(const cap_value_t expected_cap[], const int num_caps) {
9090
DTRACE_PROBE1(__PROGRAM_NAME, "cap-set-flag-permitted", 1);
9191
(void)cap_free(capabilities);
9292
/* error */
93-
print_cap_error("PERMITTED", expected_cap, num_caps);
93+
(void)print_cap_error("PERMITTED", expected_cap, num_caps);
9494
exit(EXIT_FAILURE);
9595
}
9696
DTRACE_PROBE1(__PROGRAM_NAME, "cap-set-flag-permitted", 0);
@@ -99,7 +99,7 @@ int enable_capabilities(const cap_value_t expected_cap[], const int num_caps) {
9999
DTRACE_PROBE1(__PROGRAM_NAME, "cap-set-flag-effective", 1);
100100
(void)cap_free(capabilities);
101101
/* error */
102-
print_cap_error("ACTIVE", expected_cap, num_caps);
102+
(void)print_cap_error("ACTIVE", expected_cap, num_caps);
103103
exit(EXIT_FAILURE);
104104
}
105105
DTRACE_PROBE1(__PROGRAM_NAME, "cap-set-flag-effective", 0);
@@ -108,7 +108,7 @@ int enable_capabilities(const cap_value_t expected_cap[], const int num_caps) {
108108
DTRACE_PROBE1(__PROGRAM_NAME, "cap-set-active", 1);
109109
(void)cap_free(capabilities);
110110
/* error */
111-
print_cap_error("ACTIVE", expected_cap, num_caps);
111+
(void)print_cap_error("ACTIVE", expected_cap, num_caps);
112112
exit(EXIT_FAILURE);
113113
}
114114
DTRACE_PROBE1(__PROGRAM_NAME, "cap-set-active", 0);

0 commit comments

Comments
 (0)
Please sign in to comment.