[NeoStats-Devel] NeoStats [Commits] r3055 - in /trunk: include/configwin32.h src/main.c src/signals.c

[email protected] Wed, 20 Dec 2006 23:23:14 -0000
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Thu Dec 21 07:23:13 2006
New Revision: 3055

URL: http://svn.neostats.net/cgi-bin/viewvc.cgi?rev=3055&root=NeoStats&view=rev
Log:
win32 and sqlsrv tidy

Modified:
    trunk/include/configwin32.h
    trunk/src/main.c
    trunk/src/signals.c

Modified: trunk/include/configwin32.h
URL: http://svn.neostats.net/cgi-bin/viewvc.cgi/trunk/include/configwin32.h?rev=3055&root=NeoStats&r1=3054&r2=3055&view=diff
==============================================================================
--- trunk/include/configwin32.h (original)
+++ trunk/include/configwin32.h Thu Dec 21 07:23:13 2006
@@ -443,9 +443,6 @@
 
 /* The size of a `off_t', as computed by sizeof. */
 #define SIZEOF_OFF_T 8
-
-/* 'Use Sql Server Emulation' */
-/* #undef SQLSRV */
 
 /* If using the C implementation of alloca, define if you know the
    direction of stack growth for your system; otherwise it will be

Modified: trunk/src/main.c
URL: http://svn.neostats.net/cgi-bin/viewvc.cgi/trunk/src/main.c?rev=3055&root=NeoStats&r1=3054&r2=3055&view=diff
==============================================================================
--- trunk/src/main.c (original)
+++ trunk/src/main.c Thu Dec 21 07:23:13 2006
@@ -62,7 +62,10 @@
 #define PID_FILENAME	"neostats.pid"
 #endif /* !WIN32 */
 
+#ifndef WIN32
 static void do_reconnect( void );
+#endif /* !WIN32 */
+
 static int in_do_exit = 0;
 
 #ifdef WIN32

Modified: trunk/src/signals.c
URL: http://svn.neostats.net/cgi-bin/viewvc.cgi/trunk/src/signals.c?rev=3055&root=NeoStats&r1=3054&r2=3055&view=diff
==============================================================================
--- trunk/src/signals.c (original)
+++ trunk/src/signals.c Thu Dec 21 07:23:13 2006
@@ -68,10 +68,6 @@
 static RETSIGTYPE sighup_handler( int signum )
 {
 	irc_globops( NULL, _( "SIGHUP received, attempted to rehash" ) );
-	/* at the moment, the rehash just checks for a the SQL port is opened, if enabled */
-#ifdef SQLSRV
-	check_sql_sock();
-#endif
 }
 #endif /* SIGHUP */
 
@@ -108,9 +104,10 @@
 #endif
 }
 
-static int modules_loaded(Module *mod_ptr, void *sock) {
-	FILE *sf = (FILE *) sock;
-	os_fprintf(sf, "%s ", mod_ptr->info->name);
+static int modules_loaded( Module *mod_ptr, void *v )
+{
+	FILE *sf = (FILE *)v;
+	os_fprintf( sf, "%s ", mod_ptr->info->name );
 	return NS_FALSE;
 }