16 |
|
* You should have received a copy of the GNU General Public License |
17 |
|
* along with this program; if not, write to the Free Software |
18 |
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 |
+ |
* |
20 |
+ |
* $Id$ |
21 |
|
*/ |
22 |
|
|
23 |
|
#ifdef HAVE_CONFIG_H |
427 |
|
int main(int argc, char **argv){ |
428 |
|
|
429 |
|
extern char *optarg; |
428 |
– |
extern int optind; |
430 |
|
int c; |
431 |
|
|
432 |
|
time_t last_update = 0; |
447 |
|
switch (c){ |
448 |
|
case 'd': |
449 |
|
delay = atoi(optarg); |
450 |
< |
if (delay == 0){ |
450 |
> |
if (delay < 1){ |
451 |
|
fprintf(stderr, "Time must be 1 second or greater\n"); |
452 |
|
exit(1); |
453 |
|
} |