summaryrefslogtreecommitdiff
path: root/misc/display/files/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'misc/display/files/patch-aa')
-rw-r--r--misc/display/files/patch-aa104
1 files changed, 45 insertions, 59 deletions
diff --git a/misc/display/files/patch-aa b/misc/display/files/patch-aa
index 7145aba69342..d99fef33c821 100644
--- a/misc/display/files/patch-aa
+++ b/misc/display/files/patch-aa
@@ -1,59 +1,45 @@
-*** ../display.c Mon Aug 25 18:45:10 1997
---- display.c Mon Aug 25 18:48:31 1997
-***************
-*** 8,13 ****
---- 8,14 ----
- #include <curses.h>
- #include <signal.h>
- #include <ctype.h>
-+ #include <stdio.h>
-
-
- #define DEFAULT_DELAY 5
-***************
-*** 16,30 ****
- static char *Command;
- static int Delay;
-
-
- main(argc, argv)
- int argc;
- char *argv[];
- {
-- extern void parse_args(),
-- die(),
-- display();
--
- parse_args(argc, argv);
-
- signal(SIGHUP, die);
---- 17,28 ----
- static char *Command;
- static int Delay;
-
-+ static void die(), display(), parse_args(), usage();
-
- main(argc, argv)
- int argc;
- char *argv[];
- {
- parse_args(argc, argv);
-
- signal(SIGHUP, die);
-***************
-*** 54,60 ****
-
- static void display()
- {
-! auto FILE *fp, *popen();
- auto char ch;
-
- if (!(fp = popen(Command, "r"))) {
---- 52,58 ----
-
- static void display()
- {
-! auto FILE *fp;
- auto char ch;
-
- if (!(fp = popen(Command, "r"))) {
+--- display.c.orig Tue Nov 16 12:34:12 1999
++++ display.c Tue Nov 16 12:36:36 1999
+@@ -8,7 +8,7 @@
+ #include <curses.h>
+ #include <signal.h>
+ #include <ctype.h>
+-
++#include <stdio.h>
+
+ #define DEFAULT_DELAY 5
+
+@@ -16,15 +16,13 @@
+ static char *Command;
+ static int Delay;
+
++static void die(), display(), parse_args(), usage();
+
+ main(argc, argv)
+ int argc;
+ char *argv[];
+ {
+ int i, c;
+- extern void parse_args(),
+- die(),
+- display();
+
+ parse_args(argc, argv);
+
+@@ -68,7 +66,7 @@
+
+ static void display()
+ {
+- FILE *fp, *popen();
++ FILE *fp;
+ char ch;
+
+ if (!(fp = popen(Command, "r"))) {
+@@ -83,7 +81,6 @@
+ addch(ch);
+ }
+ clrtoeol();
+- clrtobot();
+ refresh();
+ pclose(fp);
+ }