about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2002-12-25 13:22:43 +0000
committerAlexander Barton <alex@barton.de>2002-12-25 13:22:43 +0000
commitd9a13b317e5fab3196dca20c9f84c06ba3616d2c (patch)
tree40b2b566763cddef4ba4c853f2ca08cf2d2f79e4 /src
parentd449496aa4f99b3d22d64e5d61fda9de035e7b59 (diff)
downloadngircd-d9a13b317e5fab3196dca20c9f84c06ba3616d2c.tar.gz
ngircd-d9a13b317e5fab3196dca20c9f84c06ba3616d2c.zip
- fixed some warnings that showed up with -Wtraditional
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/channel.c4
-rw-r--r--src/ngircd/hash.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c
index aafb8bc0..7f37dba6 100644
--- a/src/ngircd/channel.c
+++ b/src/ngircd/channel.c
@@ -17,7 +17,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: channel.c,v 1.38 2002/12/16 23:05:24 alex Exp $";
+static char UNUSED id[] = "$Id: channel.c,v 1.39 2002/12/25 13:22:43 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -468,7 +468,7 @@ Channel_IsValidName( CHAR *Name )
 	if(( Name[0] != '#' ) || ( strlen( Name ) >= CHANNEL_NAME_LEN )) return FALSE;
 
 	ptr = Name;
-	strcpy( badchars, " ,:\x07" );
+	strcpy( badchars, " ,:\007" );
 	while( *ptr )
 	{
 		if( strchr( badchars, *ptr )) return FALSE;
diff --git a/src/ngircd/hash.c b/src/ngircd/hash.c
index dff84a67..79ad2b21 100644
--- a/src/ngircd/hash.c
+++ b/src/ngircd/hash.c
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: hash.c,v 1.6 2002/12/12 12:24:18 alex Exp $";
+static char UNUSED id[] = "$Id: hash.c,v 1.7 2002/12/25 13:22:43 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -87,7 +87,7 @@ jenkins_hash( register UINT8 *k, register UINT32 length, register UINT32 initval
 
 	/* Set up the internal state */
 	len = length;
-	a = b = 0x9e3779b9;	/* the golden ratio; an arbitrary value */
+	a = b = 0x9e3779b9u;	/* the golden ratio; an arbitrary value */
 	c = initval;		/* the previous hash value */
 
 	/* handle most of the key */
@@ -102,7 +102,7 @@ jenkins_hash( register UINT8 *k, register UINT32 length, register UINT32 initval
 
 	/* handle the last 11 bytes */
 	c += length;
-	switch(len)		/* all the case statements fall through */
+	switch( (INT)len )	/* all the case statements fall through */
 	{
 		case 11: c+=((UINT32)k[10]<<24);
 		case 10: c+=((UINT32)k[9]<<16);