mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
63e8450b5e
PR: 14921 Submitted by: Dominic Mitchell <dom@palmerharvey.co.uk>
46 lines
709 B
Plaintext
46 lines
709 B
Plaintext
--- 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);
|
|
}
|