aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2003-06-11 00:04:47 +0000
committerDimitri Sokolyuk <demon@dim13.org>2003-06-11 00:04:47 +0000
commitbc2433e333b647bca9e3db2135c5a80b62088c3f (patch)
treee45171a68ca925fdc79a312721aabace8d419acc
parent94789f1298b6e87998b78388052f9ad691cc2f74 (diff)
fixed some typo
-rw-r--r--watch.12
-rw-r--r--watch.c14
2 files changed, 6 insertions, 10 deletions
diff --git a/watch.1 b/watch.1
index 392a1b0..a41daf8 100644
--- a/watch.1
+++ b/watch.1
@@ -13,7 +13,7 @@
The
.Nm
utility allow you to watch a program as it changes.
-By default it updates it self every 5 seconds.
+By default it updates it self every 2 seconds.
.Pp
The
.Nm
diff --git a/watch.c b/watch.c
index 4e48a83..a4aa8df 100644
--- a/watch.c
+++ b/watch.c
@@ -1,3 +1,4 @@
+/* $Id$ */
/* watch - execute program periodicaly, showing output fullscreen */
/*
* Copyright (c) 2003 demon <demon@vhost.dymdns.org>
@@ -38,11 +39,8 @@
#include <curses.h>
#define MAXBUF 255
-static char copyright[] = "Copyright (C) 2003 demon (demon@vhost.dyndns.org)";
-static char version[] = "0.2";
-static char terms[] = "This program comes with ABSOLUTELY NO WARANTY.\n\
-This is a free software, and you are welcome to redistribute it\n\
-under certain conditions. See the file COPYING for deatails.";
+static char copyright[] = "Copyright (C) 2003 demon <demon@vhost.dyndns.org>";
+static char version[] = "$Revision$";
extern char *__progname;
time_t tval;
int die_flag;
@@ -51,8 +49,7 @@ void usage();
void die();
int main (int argc, char *argv[]) {
- int i;
- int period=5;
+ int period=2;
char ch;
char cmd[MAXBUF];
char buf[MAXBUF];
@@ -66,8 +63,7 @@ int main (int argc, char *argv[]) {
while ((ch = getopt(argc, argv, "s:v")) != -1)
switch (ch) {
case 'v':
- (void)fprintf(stderr, "%s version %s %s\n", __progname, version, copyright);
- (void)fprintf(stderr, "%s\n", terms);
+ (void)fprintf(stderr, "%s %s\n%s\n", __progname, version, copyright);
exit(1);
break;
case 's':