]> git.ozlabs.org Git - ccan/commitdiff
closefrom: fix minor issues found by ccanlint
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 21 Oct 2021 04:31:18 +0000 (15:01 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 21 Oct 2021 04:31:18 +0000 (15:01 +1030)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/closefrom/_info
ccan/closefrom/test/run.c

index 28f903a4714093d59db95314adc99a2d6ecb301e..4dc1d7fae9d39edc3001db354c20082b8db43b80 100644 (file)
@@ -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();
index aaae4102c016be35b1f9b83a162f1c2ed0845942..10e4015841b4991e92cc26f1669e7085993952a7 100644 (file)
@@ -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;