remove printf and therefore fix Win32 CRT dependecies

This commit is contained in:
Mark 2005-05-12 20:23:16 +00:00
parent 6ddc3be499
commit e129573abb

11
opsb.c
View file

@ -125,7 +125,7 @@ int opsb_cmd_check (CmdParams* cmdparams)
} else { } else {
strlcpy(scandata->who, cmdparams->av[0], MAXHOST); strlcpy(scandata->who, cmdparams->av[0], MAXHOST);
strlcpy(scandata->lookup, cmdparams->av[0], MAXHOST); strlcpy(scandata->lookup, cmdparams->av[0], MAXHOST);
memset (scandata->server, 0, MAXHOST); os_memset (scandata->server, 0, MAXHOST);
/* is it a ip address or host */ /* is it a ip address or host */
if (inet_aton(cmdparams->av[0], &scandata->ip) <= 0) { if (inet_aton(cmdparams->av[0], &scandata->ip) <= 0) {
scandata->ip.s_addr = 0; scandata->ip.s_addr = 0;
@ -506,7 +506,6 @@ int startscan(scaninfo *scandata)
/* only check the cache when we have IP addy */ /* only check the cache when we have IP addy */
if (scandata->ip.s_addr > 0) { if (scandata->ip.s_addr > 0) {
printf("check cache\n");
i = checkcache(scandata); i = checkcache(scandata);
if ((i > 0) && (scandata->reqclient == NULL)) { if ((i > 0) && (scandata->reqclient == NULL)) {
ns_free(scandata); ns_free(scandata);
@ -631,11 +630,3 @@ int ModFini( void )
{ {
return NS_SUCCESS; return NS_SUCCESS;
} }
#ifdef WIN32 /* temp */
int main (int argc, char **argv)
{
return 0;
}
#endif