[NeoStats-Devel] [Commits] r2816 - in trunk: . src

[email protected] Wed, 14 Sep 2005 06:27:38 +1000
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Wed Sep 14 04:27:35 2005
New Revision: 2816

Modified:
   trunk/makeconf
   trunk/src/modules.c
Log:
undo makeconf commit

Modified: trunk/makeconf
==============================================================================
--- trunk/makeconf	(original)
+++ trunk/makeconf	Wed Sep 14 04:27:35 2005
@@ -56,21 +56,21 @@
 
 # If Settings exist, load the info, otherwise tell them to run configure.
 
-#if [ -r config.h ]; then
-#	echo "Starting configuration.. "
-#else if [ -r include/config.h ]; then
-#	echo "Starting configuration.. "
-#else
-#	echo "Configuration failed!"
-#	echo "You have not run configure yet!"
-#	echo "You probably should read the README file too"
-#	echo ""
-#	echo "Type ./configure"
-#	echo "(If you need help read the README before asking us)"
-#	echo ""
-#	exit 1
-#fi
-#fi
+if [ -r config.h ]; then
+	echo "Starting configuration.. "
+else if [ -r include/config.h ]; then
+	echo "Starting configuration.. "
+else
+	echo "Configuration failed!"
+	echo "You have not run configure yet!"
+	echo "You probably should read the README file too"
+	echo ""
+	echo "Type ./configure"
+	echo "(If you need help read the README before asking us)"
+	echo ""
+	exit 1
+fi
+fi
 CONF=$NEOSTATSCONF
 
 if [ -r "$CONF" ]; then

Modified: trunk/src/modules.c
==============================================================================
--- trunk/src/modules.c	(original)
+++ trunk/src/modules.c	Wed Sep 14 04:27:35 2005
@@ -247,7 +247,7 @@
  *  @return pointer to loaded module
  */
 
-Module *load_stdmodule( const char *modfilename, Client * u )
+static Module *load_stdmodule( const char *modfilename, Client * u )
 {
 	int err;
 	void *handle;
@@ -279,7 +279,7 @@
 		ns_dlclose( handle );
 		return NULL;
 	}
-	if( !infoptr->copyright || ircstrcasecmp( infoptr->copyright[0], "Copyright( c ) <year>, <your name>" ) ==0 ) {
+	if( !infoptr->copyright || ircstrcasecmp( infoptr->copyright[0], "Copyright (c) <year>, <your name>" ) ==0 ) {
 		load_module_error( u, modfilename, __( "missing copyright text.", u ) );
 		ns_dlclose( handle );
 		return NULL;
@@ -387,8 +387,8 @@
 
 Module *ns_load_module( const char *modfilename, Client * u )
 { 
-	char path[255];
-	char loadmodname[255];
+	static char path[255];
+	static char loadmodname[255];
 	struct stat buf;
 
 	strlcpy( loadmodname, modfilename, 255 );