mirror of
https://git.freebsd.org/ports.git
synced 2025-06-09 23:00:30 -04:00
38 lines
656 B
Text
38 lines
656 B
Text
--- display.c.orig Mon Mar 26 10:03:42 2001
|
|
+++ display.c Fri Mar 8 01:15:54 2002
|
|
@@ -12,6 +12,7 @@
|
|
#include <signal.h>
|
|
#include <ctype.h>
|
|
#include <time.h>
|
|
+#include <stdio.h>
|
|
|
|
#define DEFAULT_DELAY 5
|
|
#define DISPLAY_VERSION "1.2"
|
|
@@ -19,6 +20,8 @@
|
|
static char *Command;
|
|
static int Delay;
|
|
|
|
+static void die(), display(), parse_args(), usage();
|
|
+
|
|
char lt[128];
|
|
int ntimes;
|
|
|
|
@@ -27,9 +30,6 @@
|
|
char *argv[];
|
|
{
|
|
int i, c;
|
|
- extern void parse_args(),
|
|
- die(),
|
|
- display();
|
|
|
|
for(i = 0; i < 128; i++)
|
|
{
|
|
@@ -90,7 +90,7 @@
|
|
|
|
void display()
|
|
{
|
|
- FILE *fp, *popen();
|
|
+ FILE *fp;
|
|
char ch;
|
|
char *dt;
|
|
time_t tnow;
|