Группа :: Терминалы
Пакет: ttyrec
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 02_minor_cleanup.diff
Скачать
Скачать
Description: minor cleanup to stop warnings
Authors: NIIBE Yutaka <gniibe@fsij.org>
Reviewed-By: NIIBE Yutaka <gniibe@fsij.org>
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");