--- projects/libstatgrab/src/saidar/saidar.c 2004/01/19 16:49:23 1.24 +++ projects/libstatgrab/src/saidar/saidar.c 2004/04/04 22:48:51 1.26 @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Id: saidar.c,v 1.24 2004/01/19 16:49:23 tdb Exp $ + * $Id: saidar.c,v 1.26 2004/04/04 22:48:51 tdb Exp $ */ #ifdef HAVE_CONFIG_H @@ -427,7 +427,6 @@ void usage(char *progname){ int main(int argc, char **argv){ extern char *optarg; - extern int optind; int c; time_t last_update = 0; @@ -448,7 +447,7 @@ int main(int argc, char **argv){ switch (c){ case 'd': delay = atoi(optarg); - if (delay == 0){ + if (delay < 1){ fprintf(stderr, "Time must be 1 second or greater\n"); exit(1); }