break;
case 'c': /* connect-timeout */
err = str2udouble(&config->connecttimeout, nextarg,
- LONG_MAX/1000);
+ (double)LONG_MAX/1000);
if(err)
return err;
break;
return err;
break;
case 'R': /* --expect100-timeout */
- err = str2udouble(&config->expect100timeout, nextarg, LONG_MAX/1000);
+ err = str2udouble(&config->expect100timeout, nextarg,
+ (double)LONG_MAX/1000);
if(err)
return err;
break;
break;
case 'm':
/* specified max time */
- err = str2udouble(&config->timeout, nextarg, LONG_MAX/1000);
+ err = str2udouble(&config->timeout, nextarg, (double)LONG_MAX/1000);
if(err)
return err;
break;
* data.
*/
-static ParameterError str2double(double *val, const char *str, long max)
+static ParameterError str2double(double *val, const char *str, double max)
{
if(str) {
char *endptr;
* data.
*/
-ParameterError str2udouble(double *valp, const char *str, long max)
+ParameterError str2udouble(double *valp, const char *str, double max)
{
double value;
ParameterError result = str2double(&value, str, max);
ParameterError str2unum(long *val, const char *str);
ParameterError oct2nummax(long *val, const char *str, long max);
ParameterError str2unummax(long *val, const char *str, long max);
-ParameterError str2udouble(double *val, const char *str, long max);
+ParameterError str2udouble(double *val, const char *str, double max);
ParameterError proto2num(struct OperationConfig *config,
const char * const *val, char **obuf,