cd->retry = 0;
while ((s = string_nextinlist(&optstr, subsep, NULL, 0)))
- {
if (Ustrncmp(s, "retry=", 6) == 0)
{
int sec = readconf_readtime((s += 6), '\0', FALSE);
}
else
return FAIL;
- }
+return OK;
}
/*************************************************
string_sprintf("unable to read result (%s)", strerror(errno)),
sock);
- for (p[bread] = '\0'; q = strchr(p, '\n'); p = q+1)
+ for (p[bread] = '\0'; q = Ustrchr(p, '\n'); p = q+1)
{
*q = '\0';
sizeof(linebuffer), tmo)))
{
if (rcnt < 0)
+ {
+ int err = errno;
if (rcnt == -1)
break;
- else
- {
- int err = errno;
- (void) pclose(scanner_out);
- signal(SIGCHLD,eximsigchld); signal(SIGPIPE,eximsigpipe);
- return m_errlog_defer(scanent, string_sprintf(
- "unable to read from scanner (%s): %s",
- commandline, strerror(err)));
- }
+ (void) pclose(scanner_out);
+ signal(SIGCHLD,eximsigchld); signal(SIGPIPE,eximsigpipe);
+ return m_errlog_defer(scanent, string_sprintf(
+ "unable to read from scanner (%s): %s",
+ commandline, strerror(err)));
+ }
if (Ustrlen(linebuffer) > fwrite(linebuffer, 1, Ustrlen(linebuffer), scanner_record))
{
string_sprintf("missing port: '%s'", scanner_options));
continue;
}
- cd->tcp_port = atoi(s);
+ cd->tcp_port = atoi(CS s);
/* parse options */
/*XXX should these options be common over scanner types? */