From: Rusty Russell Date: Thu, 21 Oct 2021 04:31:18 +0000 (+1030) Subject: closefrom: fix minor issues found by ccanlint X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=803f1dded72dc7a400cc5b52904b71d0c7233823;p=ccan closefrom: fix minor issues found by ccanlint Signed-off-by: Rusty Russell --- diff --git a/ccan/closefrom/_info b/ccan/closefrom/_info index 28f903a4..4dc1d7fa 100644 --- a/ccan/closefrom/_info +++ b/ccan/closefrom/_info @@ -37,7 +37,7 @@ * * // If we limited, we can query this so we can * // print it in debug logs or something. - * if (close_from_may_be_slow()) + * if (closefrom_may_be_slow()) * printf("we limited ourselves to 4096 fds.\n"); * * child = fork(); diff --git a/ccan/closefrom/test/run.c b/ccan/closefrom/test/run.c index aaae4102..10e40158 100644 --- a/ccan/closefrom/test/run.c +++ b/ccan/closefrom/test/run.c @@ -87,7 +87,7 @@ int fork_close(void) * child to parent, check. */ static -int fork_communicate() +int fork_communicate(void) { int fds[2]; pid_t child;