Description: minor cleanup to stop warnings Authors: NIIBE Yutaka Reviewed-By: NIIBE Yutaka Last-Update: 2010-04-27 --- ttyrec-1.0.8.orig/ttyrec.c +++ ttyrec-1.0.8/ttyrec.c @@ -325,9 +325,9 @@ (void) close(slave); if (!command) { - execl(shell, strrchr(shell, '/') + 1, "-i", 0); + execl(shell, strrchr(shell, '/') + 1, "-i", NULL); } else { - execl(shell, strrchr(shell, '/') + 1, "-c", command, 0); + execl(shell, strrchr(shell, '/') + 1, "-c", command, NULL); } perror(shell); fail(); --- ttyrec-1.0.8.orig/ttyplay.c +++ ttyrec-1.0.8/ttyplay.c @@ -252,7 +252,6 @@ FILE * input_from_stdin (void) { - FILE *fp; int fd = edup(STDIN_FILENO); edup2(STDOUT_FILENO, STDIN_FILENO); return efdopen(fd, "r");