[NeoStats-Devel] [Commits] r166 - branches/3.0

[email protected]
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Fri May 13 04:23:16 2005
New Revision: 166

Modified:
   branches/3.0/opsb.c
Log:
remove printf and therefore fix Win32 CRT dependecies

Modified: branches/3.0/opsb.c
==============================================================================
--- branches/3.0/opsb.c	(original)
+++ branches/3.0/opsb.c	Fri May 13 04:23:16 2005
@@ -125,7 +125,7 @@
 	} else {
 		strlcpy(scandata->who, 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 */
 		if (inet_aton(cmdparams->av[0], &scandata->ip) <= 0) {
 			scandata->ip.s_addr = 0;
@@ -506,7 +506,6 @@
 	
 	/* only check the cache when we have IP addy */
 	if (scandata->ip.s_addr > 0) {
-		printf("check cache\n");
 		i = checkcache(scandata);
 		if ((i > 0) && (scandata->reqclient == NULL)) {
 			ns_free(scandata);
@@ -631,11 +630,3 @@
 {
 	return NS_SUCCESS;
 }
-
-#ifdef WIN32 /* temp */
-
-int main (int argc, char **argv)
-{
-	return 0;
-}
-#endif
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.