From bc2433e333b647bca9e3db2135c5a80b62088c3f Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 11 Jun 2003 00:04:47 +0000 Subject: fixed some typo --- watch.1 | 2 +- watch.c | 14 +++++--------- 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 @@ -38,11 +39,8 @@ #include #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 "; +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': -- cgit v1.2.3