1324 } |
1324 } |
1325 |
1325 |
1326 time_t timeout = 0; |
1326 time_t timeout = 0; |
1327 char *timeoutstr = cmd_getoption(a, "timeout"); |
1327 char *timeoutstr = cmd_getoption(a, "timeout"); |
1328 if(timeoutstr) { |
1328 if(timeoutstr) { |
1329 if(!sstrcasecmp(sstr(timeoutstr), S("infinity"))) { |
1329 if(!sstrcasecmp(sstr(timeoutstr), S("infinite"))) { |
1330 timeout = -1; |
1330 timeout = -1; |
1331 } else { |
1331 } else { |
1332 timeout = (time_t)atoi(timeoutstr); // TODO: use strtol |
1332 timeout = (time_t)atoi(timeoutstr); // TODO: use strtol |
1333 } |
1333 } |
1334 } |
1334 } |