/******************************************************************************
* 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 delay none "set the minimum retry period (in milliseconds)"
* ---INFOEND--- */
#include "client.h"
#include "util.h"
#include "table.h"
#include <stdlib.h>
int
ldelay_main(int argc, char *const *argv, char **envp)
{
char *newdelaytime;
if (argc < 2)
{
ffprintf(STDINFO, "minimum retry time set to %ld msec.\n", target_delay);
return 0;
}
else
newdelaytime = argv[1];
if (newdelaytime == (char*) 0)
return 1;
target_delay = atoi(newdelaytime);
if (target_delay < MINDELAY)
target_delay = MINDELAY;
return 0;
}
syntax highlighted by Code2HTML, v. 0.9.1