Nico P - 2025-09-02

sentinel needs a pointer, use NULL defined ((void *)0) in gcc or clang

ckpass.c: In function pipeout:
ckpass.c:681:17: warning: missing sentinel in function call [-Wformat=]
  681 |                 execl(command, command, 0);
      |                 ^~~~~
--- a/ckpass.c
+++ b/ckpass.c
@@ -677,7 +677,7 @@ int pipeout(const char *command, const char *s)
                close(pipefd[1]); /* Close write end. */
                dup2(pipefd[0], 0); /* Dup read end to stdin. */


-               execl(command, command, 0);
+               execl(command, command, NULL);

                /* I don't really think these are necessary, but just in case. */
                close(pipefd[0]);