[NeoStats-Devel] [Commits] r35 - trunk

[email protected]
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Fish
Date: Fri Jul  1 17:35:53 2005
New Revision: 35

Modified:
   trunk/configure
   trunk/configure.in
   trunk/seen.c
   trunk/seenserv.c
   trunk/seenserv.h
Log:
kill compiler warnings

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Fri Jul  1 17:35:53 2005
@@ -1279,7 +1279,7 @@
 
 DIRINST=~/NeoStats3.0/
 
-CFLAGS="$CFLAGS -O2"
+CFLAGS="$CFLAGS -O2 -fno-strict-aliasing"
 
 case "$host_os" in
 *openbsd*)

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Fri Jul  1 17:35:53 2005
@@ -13,7 +13,7 @@
 AC_DEFINE_UNQUOTED(MODULE_REV, "$MODULE_REV")
 DIRINST=~/NeoStats3.0/
 AC_PREFIX_DEFAULT(~/NeoStats3.0/)
-CFLAGS="$CFLAGS -O2"
+CFLAGS="$CFLAGS -O2 -fno-strict-aliasing"
 
 case "$host_os" in
 *openbsd*)

Modified: trunk/seen.c
==============================================================================
--- trunk/seen.c	(original)
+++ trunk/seen.c	Fri Jul  1 17:35:53 2005
@@ -312,7 +312,7 @@
 int CheckSeenData(CmdParams *cmdparams, SEEN_CHECK checktype)
 {
 	lnode_t *ln, *oln[MAX_NICK_HISTORY];
-	SeenData *sd, *sdo;
+	SeenData *sd, *sdo = NULL;
 	Client *u;
 	Channel *c;
 	int matchfound = 0, seenentriesfound = 0, maxageallowed = 0;
@@ -445,6 +445,8 @@
 			else
 				seen_report( cmdparams, "%s%s was last seen Kicked From %s %s", matchednickstr, sdo->uservhost, sdo->message, combinedtimetext);
 			break;
+		default:
+			break;
 	}
 	/* expire displayed records on age if required */
 	if( SeenServ.expiretime > 0 )

Modified: trunk/seenserv.c
==============================================================================
--- trunk/seenserv.c	(original)
+++ trunk/seenserv.c	Fri Jul  1 17:35:53 2005
@@ -23,6 +23,21 @@
 #include "neostats.h"    /* Required for bot support */
 #include "seenserv.h"
 
+
+static int sns_set_enablechan (CmdParams *cmdparams, SET_REASON reason);
+static int sns_set_seenchan (CmdParams *cmdparams, SET_REASON reason);
+static int sns_set_maxentries (CmdParams *cmdparams, SET_REASON reason);
+static int sns_set_exclusions (CmdParams *cmdparams, SET_REASON reason);
+static int sns_set_eventsignon( CmdParams *cmdparams, SET_REASON reason );
+static int sns_set_eventquit( CmdParams *cmdparams, SET_REASON reason );
+static int sns_set_eventkill( CmdParams *cmdparams, SET_REASON reason );
+static int sns_set_eventnick( CmdParams *cmdparams, SET_REASON reason );
+static int sns_set_eventjoin( CmdParams *cmdparams, SET_REASON reason );
+static int sns_set_eventpart( CmdParams *cmdparams, SET_REASON reason );
+static int sns_set_eventkick( CmdParams *cmdparams, SET_REASON reason );
+static int sns_set_expiretime (CmdParams *cmdparams, SET_REASON reason);
+
+
 /** Copyright info */
 const char *sns_copyright[] = {
 	"Copyright (c) 2005, NeoStats",

Modified: trunk/seenserv.h
==============================================================================
--- trunk/seenserv.h	(original)
+++ trunk/seenserv.h	Fri Jul  1 17:35:53 2005
@@ -107,18 +107,6 @@
 int SeenKicked (CmdParams *cmdparams);
 
 /* seenserv.c */
-static int sns_set_enablechan (CmdParams *cmdparams, SET_REASON reason);
-static int sns_set_seenchan (CmdParams *cmdparams, SET_REASON reason);
-static int sns_set_maxentries (CmdParams *cmdparams, SET_REASON reason);
-static int sns_set_exclusions (CmdParams *cmdparams, SET_REASON reason);
-static int sns_set_eventsignon( CmdParams *cmdparams, SET_REASON reason );
-static int sns_set_eventquit( CmdParams *cmdparams, SET_REASON reason );
-static int sns_set_eventkill( CmdParams *cmdparams, SET_REASON reason );
-static int sns_set_eventnick( CmdParams *cmdparams, SET_REASON reason );
-static int sns_set_eventjoin( CmdParams *cmdparams, SET_REASON reason );
-static int sns_set_eventpart( CmdParams *cmdparams, SET_REASON reason );
-static int sns_set_eventkick( CmdParams *cmdparams, SET_REASON reason );
-static int sns_set_expiretime (CmdParams *cmdparams, SET_REASON reason);
 int removeagedseenrecords(void);
 
 /* seen.c */
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.