/******************************************************************************
* This file is Copyright 1993 by Philip G. Richards. All Rights Reserved.
* See the file README that came with this distribution for permissions on
* code usage, copying, and distribution. It comes with absolutely no warranty.
* email: <pgr@prg.ox.ac.uk>
******************************************************************************/
/* ---INFOBEGIN--- * DO NOT DELETE THIS COMMENT BLOCK!!!
COMMAND timeout none "set the maximum time (in seconds) to retry for"
* ---INFOEND--- */
#include "client.h"
#include "util.h"
#include "table.h"
#include <stdlib.h>
int
ltimeout_main(int argc, char *const*argv, char **envp)
{
char *newtimeout;
if (argc < 2)
{
ffprintf(STDINFO, "maximum retry time set to %u secs.\n", time_out);
return 0;
}
else
newtimeout = argv[1];
if (newtimeout == 0)
return 1;
time_out = atoi(newtimeout);
return 0;
}
syntax highlighted by Code2HTML, v. 0.9.1