53 lines
1.4 KiB
Diff
53 lines
1.4 KiB
Diff
--- ttyplay.c.orig 2011-08-03 22:03:41.143000575 +0200
|
|
+++ ttyplay.c 2011-08-03 22:04:51.454000575 +0200
|
|
@@ -42,6 +42,8 @@
|
|
#include "ttyrec.h"
|
|
#include "io.h"
|
|
|
|
+void set_progname(const char *name);
|
|
+
|
|
typedef double (*WaitFunc) (struct timeval prev,
|
|
struct timeval cur,
|
|
double speed);
|
|
@@ -252,7 +254,6 @@
|
|
FILE *
|
|
input_from_stdin (void)
|
|
{
|
|
- FILE *fp;
|
|
int fd = edup(STDIN_FILENO);
|
|
edup2(STDOUT_FILENO, STDIN_FILENO);
|
|
return efdopen(fd, "r");
|
|
--- ttyrec.c.orig 2011-08-03 22:05:20.685000575 +0200
|
|
+++ ttyrec.c 2011-08-03 22:06:25.654000573 +0200
|
|
@@ -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();
|
|
--- io.c.orig 2011-08-03 22:04:52.868000574 +0200
|
|
+++ io.c 2011-08-03 22:05:13.022000573 +0200
|
|
@@ -158,4 +158,5 @@
|
|
fprintf(stderr, "%s: fdopen failed: %s\n", progname, strerror(errno));
|
|
exit(EXIT_FAILURE);
|
|
}
|
|
+ return fp;
|
|
}
|
|
--- ttytime.c.orig 2011-08-03 22:02:00.837000576 +0200
|
|
+++ ttytime.c 2011-08-03 22:03:35.795000573 +0200
|
|
@@ -38,6 +38,8 @@
|
|
#include "io.h"
|
|
#include "ttyrec.h"
|
|
|
|
+void set_progname(const char *name);
|
|
+
|
|
int
|
|
calc_time (const char *filename)
|
|
{
|