diff options
author | Colin Watson <cjwatson@debian.org> | 2024-03-18 21:02:46 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2024-03-18 21:02:46 +0000 |
commit | daecec5a9beaff4ac70064e9bfcb3de230b02902 (patch) | |
tree | 8110210b6c8bd7ad522a98c9f7d140e48876797d /lib/cleanup.c | |
parent | ded6072e71d8ddbd44253d101d89140fca6b5089 (diff) |
Tighten up several declarations
* lib/cleanup.c (untrap_signal, pop_cleanup): Constify argument.
* lib/cleanup.h (pop_cleanup): Update prototype.
* src/decompress.c (decompress_is_pipeline): Constify argument.
* src/decompress.h (decompress_is_pipeline): Update prototype.
* src/mandb.c (dbpaths_copy_to_tmp, dbpaths_remove_tmp,
dbpaths_unlink_tmp): Constify argument.
* src/ult_src.c (ult_key_equals): Constify variable declarations.
* src/whatis.c (any_set, all_set): Constify argument.
(match): Constify variable declarations.
(do_apropos): Constify argument to `combine`.
* lib/encodings.c (get_less_charset, get_jless_charset): Narrow variable
scope.
* src/check_mandirs.c (mkcatdirs): Likewise.
Diffstat (limited to 'lib/cleanup.c')
-rw-r--r-- | lib/cleanup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cleanup.c b/lib/cleanup.c index 02bef2ab..58749f22 100644 --- a/lib/cleanup.c +++ b/lib/cleanup.c @@ -125,7 +125,7 @@ trap_abnormal_exits (void) /* Restore signo's action from oldact if its current handler is sighandler, return 0 on success, -1 on failure. */ static int -untrap_signal (int signo, struct sigaction *oldact) +untrap_signal (int signo, const struct sigaction *oldact) { struct sigaction act; if (sigaction (signo, NULL, &act)) { @@ -251,7 +251,7 @@ push_cleanup (cleanup_fun fun, void *arg, int sigsafe) * given values. */ void -pop_cleanup (cleanup_fun fun, void *arg) +pop_cleanup (cleanup_fun fun, const void *arg) { unsigned i, j; |