mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
38 lines
655 B
Text
38 lines
655 B
Text
--- display.c.orig Thu Dec 15 14:29:14 2005
|
|
+++ display.c Thu Dec 15 14:29:58 2005
|
|
@@ -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;
|
|
int ch;
|
|
char *dt;
|
|
time_t tnow;
|